Vampyre Imaging Library Forum

Imaging Category => Help & Questions => Topic started by: pka4916 on 23 May 2019, 01:26:17

Title: Cropping image possible?
Post by: pka4916 on 23 May 2019, 01:26:17
Is it possible to crop an image?
I have scanned a photo and i want to cut off all the blank parts,   is there a way to  take only a part of an page?

Thank you
Title: Re: Cropping image possible?
Post by: Galfar on 31 May 2019, 15:47:53
There's no simple CropImage function but you can
do the two steps that CropImage would do:

1. Create new image with size the same as desired crop rectangle (NewImage)
2. Copy part of the original image to the new one (CopyRect) with proper SrcX and SrcY parameters.
Title: Re: Cropping image possible?
Post by: pka4916 on 31 May 2019, 19:03:59
Thanks.
I figured it out with what you mentioned :)