VintaSoft Imaging .NET SDK 12.3: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing Namespace / ResizeCanvasCommand Class / ResizeCanvasCommand Constructors / ResizeCanvasCommand Constructor(Int32,Int32,Point,Color)
Syntax Exceptions Requirements SeeAlso
In This Topic
    ResizeCanvasCommand Constructor(Int32,Int32,Point,Color)
    In This Topic
    Initializes a new instance of the ResizeCanvasCommand class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal width
    New width of the image.
    As System.Int32, _
    ByVal height
    New height of the image.
    As System.Int32, _
    ByVal imagePosition
    Position of the original image within new image.
    As System.Drawing.Point, _
    ByVal canvasColor
    Canvas color.
    As System.Drawing.Color _
    )
    public ResizeCanvasCommand(
    System.Int32 width,
    System.Int32 height,
    System.Drawing.Point imagePosition,
    System.Drawing.Color canvasColor
    )
    public: ResizeCanvasCommand(
    System.Int32 width,
    System.Int32 height,
    System.Drawing.Point* imagePosition,
    System.Drawing.Color* canvasColor
    )
    public:
    ResizeCanvasCommand(
    System.Int32 width,
    System.Int32 height,
    System.Drawing.Point^ imagePosition,
    System.Drawing.Color^ canvasColor
    )

    Parameters

    width
    New width of the image.
    height
    New height of the image.
    imagePosition
    Position of the original image within new image.
    canvasColor
    Canvas color.
    Exceptions
    ExceptionDescription
    Thrown if width or height is lower or equal to 0 or greater than 65535.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also