HI,
I' ve tried CropBorders() on your uploaded image with perfect result. Maybe you need to call this method two times ??
In fact, CropBlackBands() & CropWhiteBands() methods should be used only on 1 bpp image. These methods are checking only for full white RGB(255, 255, 255) or full Black RGB(0, 0, 0) colors.
- Code: Select all
range of brightness setup is -1000 to 1000 so that value of 1 one should not realy make any difference since it's 8 bit and brightness of 1 should lift the black for about 1/2000 value (right?) and that's no change
It is another issue but I can say that:
- For index color bitmap it is not working like that. 8bpp image can handle only 256 different colors. Therefore 1/2000 range can't make any sense.
- For true color image it depend of your acquisition device. you can use the TwainGetCapRangeNumeric() method to cath the supported brightness values:
http://guides.gdpicture.com/v4/gdtwainp ... meric.html- Code: Select all
Dim bSuccess As Boolean
Dim nMinValue As Double, nMaxValue As Double, nStepValue As Double
bSuccess = Twain1.TwainGetCapRangeNumeric(ICAP_BRIGHTNESS, nMinValue, nMaxValue, nStepValue)
Best regards,
Loïc