Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, May 17, 2005 7:10:17 AM(UTC)
adam.terhune

Groups: Registered
Posts: 1


Do you happen to know of a way of rotating that is off center.  In other words, if you need to rotate about a point that is located somewhere else on the image other then the ceter of the image.

Thanks

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, May 19, 2005 7:47:44 AM(UTC)

support  
support

Groups: Registered, Tech Support
Posts: 20


The RotateCommand Class always uses the center of the image as the center of rotation.
If you want to rotate around a different point, the way to do it depends on what exactly you want done with the image after this rotation. An offset rotation is equivalent to a center rotation followed (or preceded by) an x-y offset.
One way to implement it is to 'canvas-resize' the image to make its center correspond to the required rotation point then perform a normal rotation then crop the image to the desired size.
To perform canvas-resizing, create a new image and fill it with the desired background color, then combine the original image with the new image to copy the data from the original to the new.
Amin Dodin
LEADTOOLS Technical Support

Edited by moderator Thursday, April 6, 2017 4:20:03 PM(UTC)  | Reason: Not specified

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.106 seconds.