CropDocumentBorders Version 9

Discussions about image processing and document imaging.
Post Reply
a235301
Posts: 9
Joined: Sat Apr 07, 2012 4:36 pm

CropDocumentBorders Version 9

Post by a235301 » Wed Jul 25, 2012 10:56 pm

We've noticed that CropDocumentBorders is missing from version 9. We've tried to replace it with CropBorders but the results are significantly different than what we had with CropDocumentBorders in version 8.

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

Re: CropDocumentBorders Version 9

Post by Loïc » Fri Jul 27, 2012 3:13 pm

Here the equivalent:

Code: Select all

if(gdpictureImaging.CropBorders(m_CurrentImage, 98.0f, ReferencePoint.ReferencePointTopLeft, ref nLeft, ref nTop, ref nWidth, ref nHeight) == GdPictureStatus.OK)
   gdpictureImaging.Crop(m_CurrentImage, nLeft, nTop, nWidth, nHeight);

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest