Dynamsoft Home|Product Home

SetImageLayout Method

Description

Sets the left, top, right, and bottom sides of the image layout rectangle for the current Data Source.

Syntax

Boolean ObjectName. SetImageLayout(Float Left,  Float Top, Float Right, Float Bottom)

Parameters

Float Left: specifies the floating point number for the left side of the image layout rectangle. 

Float Top: specifies the floating point number for the top side of the image layout rectangle. 

Float Right: specifies the floating point number for the right side of the image layout rectangle. 

Float Bottom: specifies the floating point number for the bottom side of the image layout 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

The image layout rectangle defines what portion of the Data Source's scanning area is acquired.

See also

GetDefaultImageLayout(), GetImageLayout(), ResetImageLayout()