AutoTrim method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax short AutoTrim (short iThreshold);

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 iThreshold is considered blank space. Valid values are 0 to 244.

This method supports 12 and 16-bit grayscale images. Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.

See Also

Topics:  Raster Images: Doing Geometric Transformations