VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / AcquiredImage Class / GetAsBitmap Method / GetAsBitmap(Boolean) Method
Determines that safe bitmap should be returned (16-bpp gray image should be converted to 8-bpp gray image).




In This Topic
    GetAsBitmap(Boolean) Method
    In This Topic
    Returns this image as System.Drawing.Bitmap object.
    Syntax
    'Declaration
     
    Public Overloads Function GetAsBitmap( _
       ByVal safeBitmap As Boolean _
    ) As Bitmap
    'Usage
     
    Dim instance As AcquiredImage
    Dim safeBitmap As Boolean
    Dim value As Bitmap
     
    value = instance.GetAsBitmap(safeBitmap)
    public Bitmap GetAsBitmap( 
       bool safeBitmap
    )
    public: Bitmap* GetAsBitmap( 
       bool safeBitmap
    ) 
    public:
    Bitmap^ GetAsBitmap( 
       bool safeBitmap
    ) 

    Parameters

    safeBitmap
    Determines that safe bitmap should be returned (16-bpp gray image should be converted to 8-bpp gray image).

    Return Value

    This image as System.Drawing.Bitmap.
    Exceptions
    ExceptionDescription
    Thrown if error occurs at the image processing.
    Remarks
    This method should be used if 16-bpp gray image should be returned as 8-bpp gray image because earlier versions of GDI+ cannot work with 16-bit gray images.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also