Deletes a selected or specified portion of an 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.DeleteImageData [Left,Top,Width,Height]
Parameter | Data Type | Setting |
Left | Long | The upper-left corner of the selection rectangle in pixel coordinates of the displayed image |
Top | Long | The top of the selection rectangle in pixel coordinates of the displayed image |
Width | Long | The width of the selection rectangle in pixels |
Height | Long | The height of the selection rectangle in pixels |
None
If the DeleteImageData method is invoked without parameters after an end user draws a selection rectangle, the area bounded by the selection rectangle is deleted. This method does not delete annotation data.
If the DeleteImageData method is invoked without parameters and without an end user drawing a selection rectangle, the DeleteImageData method generates an error.
After invoking the DeleteImageData method, the Save, SaveAs, or SavePage method must be invoked to save the altered image.
Invoking the DeleteImageData method sets the ImageModified property to True.