VintasoftImage Constructor(Int32,Int32,PixelFormat)
Инициализирует новый экземпляр класса
VintasoftImage.
Вот C#/VB.NET код, который демонстрирует, как создать изображение указанного размера и формата.
' width of image in pixels
Dim width As Integer = 1000
' height of image in pixels
Dim height As Integer = 1000
' create a black-white image
' ...
Using image As New Vintasoft.Imaging.VintasoftImage(width, height, Vintasoft.Imaging.PixelFormat.BlackWhite)
End Using
// width of image in pixels
int width = 1000;
// height of image in pixels
int height = 1000;
// create a black-white image
using (Vintasoft.Imaging.VintasoftImage image =
new Vintasoft.Imaging.VintasoftImage(width, height,
Vintasoft.Imaging.PixelFormat.BlackWhite))
{
// ...
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5