AutoDeskew & CropBorders

Example requests & Code samples for GdPicture Toolkits.
Post Reply
lokelo
Posts: 17
Joined: Fri Mar 28, 2008 9:00 pm

AutoDeskew & CropBorders

Post by lokelo » Thu Apr 09, 2009 12:42 am

Loic,

How would I go about using AutoDeskew and CropBorders function of the imaging object together? When ever I use one before the other, there are white triangles left behind on my image on all sides of the solid and I can not crop into the image. My images have a black border, and are sometimes grayscale, sometimes bitonal.

I might be able to do something if I could get the coordinates that were going to be cropped and use that with the skew angle, but as for now am at a loss. any help would be appreciated.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: AutoDeskew & CropBorders

Post by Loïc » Thu Apr 09, 2009 11:51 am

Hi,
I might be able to do something if I could get the coordinates that were going to be cropped and use that with the skew angle, but as for now am at a loss. any help would be appreciated.
Here your solution:
get the coordinates that were going to be cropped
See: CropBordersEX2() method: https://www.gdpicture.com/guides/gdpicture/v5/gdpictur ... rsEX2.html
and use that with the skew angle
See: GetSkewAngle() method: https://www.gdpicture.com/guides/gdpicture/v5/gdpictur ... Angle.html


Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests