VintaSoft Twain .NET SDK 15.3: Руководство для .NET разработчика
Vintasoft.WinTwain Namespace / AcquiredImage Class / GetAsBitmap Methods / GetAsBitmap(Boolean) Method
Синтаксис Exceptions Ремарки Требования Смотрите также
В этом разделе
    GetAsBitmap(Boolean) Метод (AcquiredImage)
    В этом разделе
    Returns this image as System.Drawing.Bitmap object.
    Синтаксис
    'Declaration
    
    Public Overloads Function GetAsBitmap( _
    ByVal safeBitmap
    Determines that safe bitmap should be returned (16-bpp gray image should be converted to 8-bpp gray image).
    As Boolean _
    ) As System.Drawing.Bitmap
    public System.Drawing.Bitmap GetAsBitmap(
    bool safeBitmap
    )
    public: System.Drawing.Bitmap* GetAsBitmap(
    bool safeBitmap
    )
    public:
    System.Drawing.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.
    Исключения
    ИсключениеОписание
    Thrown if error occurs at the image processing.
    Ремарки

    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.

    Требования

    Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также