Author Topic: Cropping image possible?  (Read 138 times)

Offline pka4916

  • Imaging User
  • *
  • Posts: 11
    • View Profile
Cropping image possible?
« 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

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 372
    • View Profile
    • Galfar's Homepage
Re: Cropping image possible?
« Reply #1 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.

Offline pka4916

  • Imaging User
  • *
  • Posts: 11
    • View Profile
Re: Cropping image possible?
« Reply #2 on: 31 May 2019, 19:03:59 »
Thanks.
I figured it out with what you mentioned :)