This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, July 26, 2006 5:43:49 AM(UTC)
Groups: Registered
Posts: 1
We are using leadtools 14.0 with .net framework 2.0. We have a problem with the roatation of the image. We are using image raster control for displaying images. If we rotate the image say horizontal to vertical it chops the image from top and bottom. Ideally it should roate the image and provide the scroll bar if the view area is less.
Do we need to set any specific property for it or whats the solution for such issue. We gone through the sample code and it does the same.
Thanks in Advance.
#2
Posted
:
Sunday, July 30, 2006 10:22:57 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
If you are using the RotateCommand Class to rotate your image, if you set the Flags command to RotateCommandFlags.None and run the rotation command, the rotation will crop the image. To avoid cropping the image, you need to pass any of the resizing flags (Resize, Resample or Bicubic) instead of none. Resample and Bicubic can be combined with Resize, but they can not be combined with each other. The following code shows how to rotate the image 180 degree without copping it:
+-----------------------+
Leadtools.ImageProcessing.RotateCommand command = new Leadtools.ImageProcessing.RotateCommand();
command.Angle = 18000;
command.FillColor = new Leadtools.RasterColor(255, 0, 0);
command.Flags = Leadtools.ImageProcessing.RotateCommandFlags.Resize;
command.Run(image);
+-----------------------+
If this explanation did not help you with your question, please provide me with more details about the problem.
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.