VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging Namespace / VintasoftImage Class / VintasoftImage Constructor / VintasoftImage Constructor(VintasoftBitmap,Boolean)
Vintasoft bitmap object.
Dispose image when this VintasoftImage is disposed.
Example



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 As VintasoftBitmap, _
       ByVal disposeImageAfterUse As Boolean _
    )
    public VintasoftImage( 
       VintasoftBitmap bitmap,
       bool disposeImageAfterUse
    )
    public: VintasoftImage( 
       VintasoftBitmap* bitmap,
       bool disposeImageAfterUse
    )
    public:
    VintasoftImage( 
       VintasoftBitmap^ bitmap,
       bool disposeImageAfterUse
    )

    Parameters

    bitmap
    Vintasoft bitmap object.
    disposeImageAfterUse
    Dispose image when this VintasoftImage is disposed.
    Example
    This example 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.VintasoftBitmap.Create(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.VintasoftBitmap.Create(
        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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also