How to convert Vintasoft.Imaging.VintasoftImage object to System.Drawing.Bitmap object?
In This Topic
Here is C#/VB.NET code that demonstrates how to convert Vintasoft.Imaging.VintasoftImage object to System.Drawing.Bitmap object:
/// <summary>
/// Converts <see cref="Vintasoft.Imaging.VintasoftImage"/> to <see cref="System.Drawing.Bitmap"/>.
/// </summary>
/// <param name="image"><see cref="Vintasoft.Imaging.VintasoftImage"/> to convert.</param>
/// <returns>Result <see cref="System.Drawing.Bitmap"/>.</returns>
public static System.Drawing.Bitmap VintasoftImageToBitmap(Vintasoft.Imaging.VintasoftImage image)
{
// convert Vintasoft.Imaging.VintasoftImage to System.Drawing.Bitmap
return Vintasoft.Imaging.VintasoftImageGdiExtensions.GetAsBitmap(image);
}
''' <summary>
''' Converts <see cref="Vintasoft.Imaging.VintasoftImage"/> to <see cref="System.Drawing.Bitmap"/>.
''' </summary>
''' <param name="image"><see cref="Vintasoft.Imaging.VintasoftImage"/> to convert.</param>
''' <returns>Result <see cref="System.Drawing.Bitmap"/>.</returns>
Public Shared Function VintasoftImageToBitmap(image As Vintasoft.Imaging.VintasoftImage) As System.Drawing.Bitmap
' convert Vintasoft.Imaging.VintasoftImage to System.Drawing.Bitmap
Return Vintasoft.Imaging.VintasoftImageGdiExtensions.GetAsBitmap(image)
End Function