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 : Wednesday, May 17, 2006 10:26:47 PM(UTC)

matty  
matty

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.
 

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 : Monday, May 22, 2006 2:48:19 AM(UTC)
Maen Hasan

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)

matty  
matty

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)
Maen Hasan

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.

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