This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, May 17, 2005 7:05:17 AM(UTC)
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
#2
Posted
:
Thursday, May 19, 2005 7:42:44 AM(UTC)
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:15: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.