This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, May 17, 2006 10:26:47 PM(UTC)
Groups: Registered
Posts: 6
Is it possible to rotate a displayed image by a number of degrees which is not divisible by 90? eg. by 12 degrees.
#2
Posted
:
Monday, May 22, 2006 2:48:19 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
Yes, you can rotate your image with any angle between (+/-) 36,000. A positive value will rotate the bitmap in a clockwise rotation, while a negative value will rotate the bitmap in a counter-clockwise rotation. The details depend on the programming interface that you use.
For example, it you are using the COM programming interface, you can use the Rotate method (ILEADRasterProcess).
The following code rotates the bitmap 12 degrees and redisplays the image. It resizes the bitmap to accommodate the rotation and uses blue as the fill color:
+--------------------------+
Dim RasterProc As New LEADRasterProcess
RasterProc.Rotate LEADRasterView1.Raster, 1200, ROTATE_RESIZE, RGB(0, 0, 255)
LEADRasterView1.AutoSetRects = True 'Make sure the display rectangles are adjusted
LEADRasterView1.ForceRepaint
+--------------------------+
For more information, please refer to the documentation and read the related topic.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Sunday, May 28, 2006 10:59:06 PM(UTC)
Groups: Registered
Posts: 6
Thanks, Maen.
I am using VB.NET 2005.
I cannot locate the LEADRasterProcess class. How do I reference this class?
#4
Posted
:
Tuesday, May 30, 2006 4:29:41 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
It seems that you are using the LEADTOOLS .Net programming interface.
You can use the RotateCommand Class to rotate an image by the number of degrees specified.
For more information, please refer to the LEADTOOLS .Net documentation and read the following topic:
- RotateCommand Class
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.