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



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, July 29, 2007 11:00:36 AM(UTC)

Groups: Registered
Posts: 4

I am using Leadtools 15. I am trying crop an image with region of interest.It works fine for Jpeg and tiff images. It is doesnt work for BMP images. In BMP it is cropping some where else.
Here is my code.

void RasterImage CropImage(RasterImage image, Rectangle cropRect)
CropCommand cmd = new CropCommand();
cmd.Rectangle = cropRect;


return image;


Infact I am also getting problem in in adding Rectangle region for BMP images for RedEye correction.The region is adding at some where else.

I thouroughly checked this code.IT works fine for other JPEG and Tiff images. The problem is only with BMP. Please Help.

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, July 31, 2007 9:30:21 AM(UTC)


Groups: Registered, Tech Support, Administrators
Posts: 764

BMP files by default have a Bottom-left view perspective while most files like TIF and JPEG have top-left.  You will need to change the image's view perspective to top-left or change your logic to calculate the rectangles based on the view perspective.
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.057 seconds.