Crops the image of a specified index in buffer.
Boolean ObjectName. Crop(Short sImageIndex, Long left, Long top, long right, long bottom)
Short sImageIndex: specifies the index of image in buffer. The index is 0-based.
Long left: specifies the x-coordinate of the upper-left corner of the rectangle.
Long top: specifies the y-coordinate of the upper-left corner of the rectangle.
Long right: specifies the x-coordinate of the lower-right corner of the rectangle.
Long bottom: specifies the y-coordinate of the lower-right corner of the rectangle.
Boolean.
TRUE indicates success. FALSE indicates failure.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.
When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Crop() crops an image and replaces the original image with the cropped copy. If the application still needs the original image, use CropToClipboard().
CropToClipboard(), RotateLeft(), RotateRight(), Flip(), Mirror(), GetImageSize(), ChangeImageSize(), ShowImageEditor(), ImageEditorWindowTitle property, ImageEditorIfReadonly property, ImageEditorIfEnableEnumerator property, OnImageAreaSelected Event, OnImageAreaDeSelected Event
TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.