Example-VB | Example-VC++ |
Automatically crops the displayed image.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Imaging for Windows 95 and 98 | |
Imaging for Windows NT 4.0 |
Image Edit control
object.AutoCrop [Option]
Parameter | Data Type | Setting | Description |
Option | Long (enumerated) |
0 (default) | Crops all solid black-and-white image data from outside edges |
1 | Crops all solid black image data from outside edges | ||
2 | Crops all solid white image data from outside edges |
None
The Display method must be invoked prior to calling this method.
After invoking the AutoCrop method, the Save, SaveAs, or SavePage method must be invoked to save the altered image.
Invoking the AutoCrop method sets the ImageModified property to True.