Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#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.


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 : Sunday, July 30, 2006 10:22:57 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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


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;

If this explanation did not help you with your question, please provide me with more details about the problem.

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