Cropborders with reference point

Discussions about image processing and document imaging.
Post Reply
mvrnaidu
Posts: 15
Joined: Thu Feb 16, 2012 1:17 pm

Cropborders with reference point

Post by mvrnaidu » Wed Feb 22, 2012 11:39 am

Imaging.CropBorders(m_CurrentImage, (float)98, ReferencePoint.ReferencePointTopLeft, left, top, width, height);

The above code is reporting some invalid arguments. Please suggest.

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Cropborders with reference point

Post by SamiKharma » Thu Feb 23, 2012 11:21 am

Hi,

You are calling the function incorrectly. The final four parameters should be passed by reference, introducing the work "ref" before each parameter should solve your problem.

https://www.gdpicture.com/guides/gdpicture/v8/html/con ... teger.html

Best Regards,
Sami

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests