Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

Crop Method

Description

Crops the image of a specified index in buffer.

Syntax

Boolean ObjectName. Crop(Short sImageIndex, Long left, Long top, long  right, long bottom)

Parameters

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.

Return value

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.

Remarks

Crop() crops an image and replaces the original image with the cropped copy. If the application still needs the original image, use CropToClipboard().

See Also

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.