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, December 30, 2008 2:23:58 AM(UTC)

ssskkk  
ssskkk

Groups: Registered
Posts: 74


hello

     My application is a windows based application using C#.net 2008  and framework is 3.5 and using leadtools version 16.I want to know rotate

an image specific angle. i write the code for this

int Angle = 120;

RotateCommand commandRotate = new RotateCommand();

// Rotate a image to the specified angle.

commandRotate.Angle = Angle;

commandRotate.FillColor = new RasterColor(255, 0, 0);

commandRotate.Flags = RotateCommandFlags.RotateCommandFlags;

commandRotate.Run(rasterImageViewer1.Image);

But Error happened at  commandRotate.Flags = RotateCommandFlags.RotateCommandFlags;

 

error is:

 

Error 2 'Leadtools.ImageProcessing.RotateCommandFlags' does not contain a definition for 'RotateCommandFlags' 

regards,

Dileep

 

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 : Tuesday, December 30, 2008 5:55:34 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

You can use one of the following flags:

RotateCommandFlags.None, Default, do not resize the image, crop it.  
RotateCommandFlags.Resize, Size resulting image as needed.  
RotateCommandFlags.Resample, Perform bilinear interpolation when rotating.  
RotateCommandFlags.Bicubic, Perform bicubic interpolation when rotating. 

The RotateCommandFlags.Resample and RotateCommandFlags..Bicubic can be combined with RotateCommandFlags.Resize, but they can not be combined with each other. Therefore, you can pass RotateCommandFlags.Resample Or RotateCommandFlags.Resize, but not RotateCommandFlags.Resample | RotateCommandFlags..Bicubic.

If RotateCommandFlags.Resize is set, then the image is resized. Otherwise, the image is cropped.
 
#3 Posted : Tuesday, December 30, 2008 5:57:59 PM(UTC)

ssskkk  
ssskkk

Groups: Registered
Posts: 74


thanks

it is working

 
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-2020, Yet Another Forum.NET
This page was generated in 0.124 seconds.