VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructors / VintasoftImage Constructor(VintasoftBitmap,Boolean)
Syntax Example Requirements SeeAlso
In This Topic
    VintasoftImage Constructor(VintasoftBitmap,Boolean)
    In This Topic
    Initializes a new instance of the VintasoftImage class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal bitmap
    Vintasoft bitmap object.
    As VintasoftBitmap, _
    ByVal disposeBitmapAfterUse
    A value indicating whether the bitmap must be disposed when this VintasoftImage is disposed.
    As Boolean _
    )

    Parameters

    bitmap
    Vintasoft bitmap object.
    disposeBitmapAfterUse
    A value indicating whether the bitmap must be disposed when this VintasoftImage is disposed.
    Example

    This C#/VB.NET code shows how to create an image from a VintasoftBitmap object (bitmap will be disposed automatically when image is disposed).

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

    Requirements

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

    See Also