AutoTrim method (Main Control)
Builder Syntax |
int AutoTrim (Cardinal uThreshold); |
Delphi Syntax |
AutoTrim (uThreshold: Cardinal): Integer; |
Overview |
Refer to Examining and Altering Bitmaps. |
Remarks
Trims the current bitmap, removing blank space (usually white space) around the edges.
The threshold is a delta value for detecting blank space. Starting at each edge of the bitmap and evaluating toward the center, any change in intensity that is less than or equal to uThreshold is considered blank space. Valid values are 0 to 255.
This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also
Topics: |