This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, December 30, 2008 2:23:58 AM(UTC)
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
#2
Posted
:
Tuesday, December 30, 2008 5:55:34 AM(UTC)
Groups: Guests
Posts: 3,022
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)
Groups: Registered
Posts: 74
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.