VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructor / VintasoftImage Constructor(PaperSizeKind,Resolution)
Paper size.
Image resolution.
Example



In This Topic
    VintasoftImage Constructor(PaperSizeKind,Resolution)
    In This Topic
    Initializes a new instance of the VintasoftImage class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal paperSize As PaperSizeKind, _
       ByVal resolution As Resolution _
    )
    public VintasoftImage( 
       PaperSizeKind paperSize,
       Resolution resolution
    )
    public: VintasoftImage( 
       PaperSizeKind paperSize,
       Resolution resolution
    )
    public:
    VintasoftImage( 
       PaperSizeKind paperSize,
       Resolution resolution
    )

    Parameters

    paperSize
    Paper size.
    resolution
    Image resolution.
    Example
    This example shows how to create an image with A4 standard size and the specified resolution.
    ' resolution of image
    Dim resolution As Vintasoft.Imaging.Resolution = Vintasoft.Imaging.Resolution.ScreenResolution
    ' create an image
    		' ...
    Using image As New Vintasoft.Imaging.VintasoftImage(Vintasoft.Imaging.PaperSizeKind.A4, resolution)
    End Using
    // resolution of image
    Vintasoft.Imaging.Resolution resolution = 
        Vintasoft.Imaging.Resolution.ScreenResolution;
    // create an image
    using (Vintasoft.Imaging.VintasoftImage image = 
        new Vintasoft.Imaging.VintasoftImage(Vintasoft.Imaging.PaperSizeKind.A4, resolution))
    {
        // ...
    }
    Requirements

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

    See Also