VintaSoft Twain .NET SDK 15.3: Руководство для .NET разработчика
Vintasoft.WinTwain Namespace / AcquiredImage Class / ResizeCanvas(Int32,Int32,TwainBorderColor,Int32,Int32) Method
Синтаксис Exceptions Example Требования Смотрите также
В этом разделе
    ResizeCanvas(Int32,Int32,TwainBorderColor,Int32,Int32) Метод (AcquiredImage)
    В этом разделе
    Changes size of image canvas.
    Синтаксис
    '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.WinTwain.ImageProcessing.TwainBorderColor, _
    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.
    Исключения
    ИсключениеОписание
    Thrown if image size is bigger than canvas size OR image is outside of canvas.
    Пример

    Please see example here: AcquiredImage.

    Требования

    Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также