VintaSoft Imaging .NET SDK 15.1: Документация для .NET разработчика
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructors / VintasoftImage Constructor(Int32,Int32)
Синтаксис Exceptions Example Требования Смотрите также
В этом разделе
VintasoftImage Constructor(Int32,Int32)
В этом разделе
Инициализирует новый экземпляр класса VintasoftImage.
Синтаксис
'Declaration

Public Function New( _
ByVal width
Ширина изображения в пикселях.
As System.Int32, _
ByVal height
Высота изображения в пикселях.
As System.Int32 _
)
public VintasoftImage(
System.Int32 width,
System.Int32 height
)

Parameters

width
Ширина изображения в пикселях.
height
Высота изображения в пикселях.
Исключения
ИсключениеОписание
Выбрасывается, если width или height равно 0 или меньше.
Пример

Вот C#/VB.NET код, который демонстрирует, как создать изображение указанного размера.


' 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))
{
    // ...
}

Требования

Целевые платформы: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также