Deletes a selected or specified portion of an image.
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 or SaveAs method must be invoked to save the altered image.
DeleteSelectedAnnotations method
DrawSelectionRect method
Image topics in Imaging Concepts
Save method
SaveAs method
SelectionRectangle property
SelectionRectDrawn event