Page 1 of 1

gflAutoCrop

Posted: Wed Mar 30, 2005 11:22 pm
by Martin Schmidt
If i use backgroundcolor 255, 255, 255, 0 gflAutoCrop will not work.

GFL_COLOR cropcolor;
cropcolor.Red = 255;
cropcolor.Green = 255;
cropcolor.Blue = 255;
cropcolor.Alpha = 0;
GFL_ERROR result = gflAutoCrop(m_Bitmap, NULL, cropcolor, 0);

gflAutoCrop returned no error.
XnView crop the bitmap korrekt!

If i use backgroundcolor 0, 0, 0, 0 in my bitmap, gflAutoCrop work.

Re: gflAutoCrop

Posted: Fri Apr 01, 2005 9:29 am
by xnview
Martin Schmidt wrote:If i use backgroundcolor 255, 255, 255, 0 gflAutoCrop will not work.

GFL_COLOR cropcolor;
cropcolor.Red = 255;
cropcolor.Green = 255;
cropcolor.Blue = 255;
cropcolor.Alpha = 0;
GFL_ERROR result = gflAutoCrop(m_Bitmap, NULL, cropcolor, 0);

gflAutoCrop returned no error.
XnView crop the bitmap korrekt!

If i use backgroundcolor 0, 0, 0, 0 in my bitmap, gflAutoCrop work.
Could you show your picture used for autocrop?

Posted: Fri Apr 01, 2005 1:24 pm
by Martin Schmidt
I do not show the picture with my tool. The Result of gflLoadBitmap was successfully.

I could need a new feature in gflAutoCrop. I need the position of the cropped picture in the source picture. Now i must compute separately this parameter.

I would be very grateful, if you could help me.

Posted: Fri Apr 01, 2005 3:16 pm
by xnview
Martin Schmidt wrote:I do not show the picture with my tool. The Result of gflLoadBitmap was successfully.
No, i means show me the original picture?

Posted: Sun Apr 03, 2005 1:34 pm
by Martin Schmidt
Thanx for bugfix.

Still in 2.40?

Posted: Tue Aug 30, 2005 3:40 am
by tailormade
I am using V2.40 and I am having the same problem. Did this fix not make it into 2.40?

Re: Still in 2.40?

Posted: Tue Aug 30, 2005 6:31 am
by xnview
tailormade wrote:I am using V2.40 and I am having the same problem. Did this fix not make it into 2.40?
On which bitmap did you use this function?