VintasoftImage Constructor(VintasoftBitmap,Boolean)
Инициализирует новый экземпляр класса
VintasoftImage.
Вот C#/VB.NET код, который демонстрирует, как создать изображение из объекта VintasoftBitmap (растровое изображение будет удалено автоматически при удалении изображения).
' create a bitmap
Dim bitmap As Vintasoft.Imaging.VintasoftBitmap = Vintasoft.Imaging.VintasoftImage.CreateBitmap(1000, 1000, Vintasoft.Imaging.PixelFormat.Bgr24)
' create an image from bitmap (bitmap will be disposed automatically when image is disposed)
' ...
Using image As New Vintasoft.Imaging.VintasoftImage(bitmap, True)
End Using
// create a bitmap
Vintasoft.Imaging.VintasoftBitmap bitmap = Vintasoft.Imaging.VintasoftImage.CreateBitmap(
1000, 1000, Vintasoft.Imaging.PixelFormat.Bgr24);
// create an image from bitmap (bitmap will be disposed automatically when image is disposed)
using (Vintasoft.Imaging.VintasoftImage image =
new Vintasoft.Imaging.VintasoftImage(bitmap, true))
{
// ...
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5