VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructor / VintasoftImage Constructor(Int32,Int32)
Width of the image in pixels.
Height of the image in pixels.
Example



In This Topic
    VintasoftImage Constructor(Int32,Int32)
    In This Topic
    Initializes a new instance of the VintasoftImage class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal width As Integer, _
       ByVal height As Integer _
    )
    public VintasoftImage( 
       int width,
       int height
    )
    public: VintasoftImage( 
       int width,
       int height
    )
    public:
    VintasoftImage( 
       int width,
       int height
    )

    Parameters

    width
    Width of the image in pixels.
    height
    Height of the image in pixels.
    Exceptions
    ExceptionDescription
    Thrown if width or height is 0 or less.
    Example
    This example shows how to create an image of the specified size.
    ' width of image in pixels
    Dim width As Integer = 1000
    ' height of image in pixels
    Dim height As Integer = 1000
    ' create an image
    		' ...
    Using image As New Vintasoft.Imaging.VintasoftImage(width, height)
    End Using
    // width of image in pixels
    int width = 1000;
    // height of image in pixels
    int height = 1000;
    // create an image
    using (Vintasoft.Imaging.VintasoftImage image = 
        new Vintasoft.Imaging.VintasoftImage(width, height))
    {
        // ...
    }
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also