VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructors / VintasoftImage Constructor(PaperSizeKind,Resolution)
Syntax Example Requirements SeeAlso
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
Paper size.
As PaperSizeKind, _
ByVal resolution
Image resolution.
As Resolution _
)
public VintasoftImage(
PaperSizeKind paperSize,
Resolution resolution
)

Parameters

paperSize
Paper size.
resolution
Image resolution.
Example

This C#/VB.NET code 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.ImagingEnvironment.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.ImagingEnvironment.ScreenResolution;
// create an image
using (Vintasoft.Imaging.VintasoftImage image = 
    new Vintasoft.Imaging.VintasoftImage(Vintasoft.Imaging.PaperSizeKind.A4, resolution))
{
    // ...
}

Requirements

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

See Also