VintaSoft Twain .NET SDK 15.4: Documentation for .NET developer
Vintasoft.EsclImageScanning Namespace / EsclAcquiredImage Class / ResizeCanvas(Int32,Int32,EsclBorderColor,Int32,Int32) Method
Syntax Example Requirements SeeAlso
In This Topic
ResizeCanvas(Int32,Int32,EsclBorderColor,Int32,Int32) Method (EsclAcquiredImage)
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.EsclImageScanning.ImageProcessing.EsclBorderColor, _
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: EsclAcquiredImage.

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5

See Also