Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
markus42
Posted - Jan 22 2013 : 04:32:13 Hello,
i am using this code for crop a layer (selection has been set before)
ImageEnView.Proc.CropSel;
Then i get the layer with only the croped part of the image.
If the layer has been resized with the mouse before set the selection and crop the image, the result is defomed, this means the croped new content doesn't look like expected. It is much more growing wider.
I hope someone can help me. I try to explain it in the attached jpg file.
Kind Regards
2 L A T E S T R E P L I E S (Newest First)
w2m
Posted - Jan 22 2013 : 08:09:59 Maybe setting the layer dimensions to the bitmap dimensions after cropping will work for you:
Posted - Jan 22 2013 : 07:09:53 I have now this "solution". Before "crop" the image i am save the dimension of the selection rectangle. I set this new with and heiht as the new dimension of the layer.
I think this is not a good solution, but better than the deformation. Other tips are welcome.