Accusoft Pegasus
ScanFix ActiveX 6.0
GetRectangle Method
See Also  Send Feedback
x
Integer for horizontal coordinate of area to extract from the original image.
y
Integer for vertical coordinate of area to extract from the original image.
width
Integer for width of area to extract from the original image.
height
Integer for height of area to extract from the original image.
padColor
The color used for new pixels if necessary.
allowPadding
Flag indicating whether padding or an error occurs if the 'area' is outside of the image bounds. Default is False.

Description

Replaces the current image with a subset of the original image.

Syntax

Visual Basic
Public Sub GetRectangle( _
   ByVal x As Long, _
   ByVal y As Long, _
   ByVal width As Long, _
   ByVal height As Long, _
   Optional ByVal padColor As OLE_COLOR = 16777215, _
   Optional ByVal allowPadding As Boolean = False _
) 

Parameters

x
Integer for horizontal coordinate of area to extract from the original image.
y
Integer for vertical coordinate of area to extract from the original image.
width
Integer for width of area to extract from the original image.
height
Integer for height of area to extract from the original image.
padColor
The color used for new pixels if necessary.
allowPadding
Flag indicating whether padding or an error occurs if the 'area' is outside of the image bounds. Default is False.

Remarks

If the specified area extends beyond the boundaries of the original image, either pixels of the padColor (default is white) are added or an error occurs; depending upon the value of the 'allowPadding' parameter.

See Also


©2010. Pegasus Imaging Corporation, DBA Accusoft Pegasus. All Rights Reserved.