VintaSoftTwain Control v6.0
VintaSoftTwain Object / AcquiredImages_ResizeCanvas Method
Zero-based index of image in acquired image collection. Valid values are from 0 to (AcquiredImages_Count-1).
Width of the image canvas.
Height of the image canvas.
Color of the image canvas.
X position of the original image within new image.
Y position of the original image within new image.
In This Topic
    AcquiredImages_ResizeCanvas Method
    In This Topic
    Description
    Changes size of image canvas.
    Syntax
    Visual Basic
    Public Function AcquiredImages_ResizeCanvas( _
       ByVal index As Long, _
       ByVal canvasWidth As Long, _
       ByVal canvasHeight As Long, _
       ByVal borderColor As enumImageProcessingBorderColor, _
       ByVal imageXPosition As Long, _
       ByVal imageYPosition As Long _
    ) As Boolean
    Parameters
    index
    Zero-based index of image in acquired image collection. Valid values are from 0 to (AcquiredImages_Count-1).
    canvasWidth
    Width of the image canvas.
    canvasHeight
    Height of the image canvas.
    borderColor
    ValueDescription
    IMAGEPROCESSINGBORDERCOLOR_AutoDetectFree space around rotated image will be filled with border color of rotated image.
    IMAGEPROCESSINGBORDERCOLOR_BlackFree space around rotated image will be filled with black color.
    IMAGEPROCESSINGBORDERCOLOR_WhiteFree space around rotated image will be filled with white color.
    Color of the image canvas.
    imageXPosition
    X position of the original image within new image.
    imageYPosition
    Y position of the original image within new image.
    Return Type
    TRUE (1) if image is processed successfully, FALSE (0) otherwise.
    Remarks
    Information about error that occurs during method execution can be get using the Error and ErrorString properties.
    Example
    Please see example here.
    See Also