VintaSoft Twain .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Sane Namespace / SaneAcquiredImage Class / ResizeCanvas(Int32,Int32,SaneBorderColor,Int32,Int32) Method
Syntax Example Requirements SeeAlso
In This Topic
    ResizeCanvas(Int32,Int32,SaneBorderColor,Int32,Int32) Method (SaneAcquiredImage)
    In This Topic
    Changes size of image canvas.
    Syntax
    'Declaration
    
    Public Function ResizeCanvas( _
    ByVal canvasWidth
    Width of the image canvas.
    As Integer, _
    ByVal canvasHeight
    Height of the image canvas.
    As Integer, _
    ByVal canvasColor
    Color of the image canvas.
    As Vintasoft.Sane.ImageProcessing.SaneBorderColor, _
    ByVal imageXPosition
    X position of the original image within new image.
    As Integer, _
    ByVal imageYPosition
    Y position of the original image within new image.
    As Integer _
    ) As Boolean

    Parameters

    canvasWidth
    Width of the image canvas.
    canvasHeight
    Height of the image canvas.
    canvasColor
    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 Value

    true if the image canvas is changed; false if the image canvas is not changed.
    Example

    Please see example here: SaneAcquiredImage.

    Requirements

    Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6

    See Also