VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructors / VintasoftImage Constructor(PaperSizeKind,Resolution,PixelFormat)
Syntax Example Requirements SeeAlso
In This Topic
    VintasoftImage Constructor(PaperSizeKind,Resolution,PixelFormat)
    In This Topic
    Initializes a new instance of the VintasoftImage class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal paperSize
    Paper size.
    As PaperSizeKind, _
    ByVal resolution
    Image resolution.
    As Resolution, _
    ByVal pixelFormat
    Pixel format of the image.
    As PixelFormat _
    )

    Parameters

    paperSize
    Paper size.
    resolution
    Image resolution.
    pixelFormat
    Pixel format of the image.
    Example

    This C#/VB.NET code shows how to create a black-white image with A4 standard size and the specified resolution.

    
    ' resolution of image
    Dim resolution As Vintasoft.Imaging.Resolution = Vintasoft.Imaging.ImagingEnvironment.ScreenResolution
    ' create a black-white image
            ' ...
    Using image As New Vintasoft.Imaging.VintasoftImage(Vintasoft.Imaging.PaperSizeKind.A4, resolution, Vintasoft.Imaging.PixelFormat.BlackWhite)
    End Using
    
    
    
    // resolution of image
    Vintasoft.Imaging.Resolution resolution = 
        Vintasoft.Imaging.ImagingEnvironment.ScreenResolution;
    // create a black-white image
    using (Vintasoft.Imaging.VintasoftImage image = 
        new Vintasoft.Imaging.VintasoftImage(Vintasoft.Imaging.PaperSizeKind.A4, 
            resolution, Vintasoft.Imaging.PixelFormat.BlackWhite))
    {
        // ...
    }
    
    

    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