LEADTOOLS Support
Imaging
Imaging SDK Questions
Lead Tools 15. Cropping BMPs with selected rectangle doesn't work properly. It is cropping at some w
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, July 29, 2007 11:00:36 AM(UTC)
Groups: Registered
Posts: 4
Hi,
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;
cmd.Run(image);
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.
#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.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Lead Tools 15. Cropping BMPs with selected rectangle doesn't work properly. It is cropping at some w
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.