Chinese Simplified (简体中文)

OpenBitmapBits Method of the Engine Object

Important! This method is not implemented.

This method opens the specified bitmap data and supports the following image formats:

  • 1-bit monochrome (each pixel is represented as 1 bit).
  • 8-bit gray (each pixel is represented as 8 bits).
  • 24-bit color (each 24 bits use 8 bits of each R, G, B component).

Syntax

HRESULT OpenBitmapBits(
  BitmapBitsFormatEnum Format,
  int                  Width,
  int                  Height,
  int                  ByteWidth,
  int                  XResolution,
  int                  YResolution,
  __int64              RawDataPtr,
  IPrepareImageMode*   PrepareMode,
  IImageDocument**     Result
);
    

Parameters

Format
[in] This parameter of the BitmapBitsFormatEnum type describes the format of the bitmap data to be opened.
Width
[in] Specifies the width of the bitmap in pixels. This parameter must not be 0.
Height
[in] Specifies the height of the bitmap in pixels. This parameter must not be 0.
ByteWidth
[in] Specifies the width of the line of bitmap in bytes (padding included). This parameter must not be 0.
XResolution
[in] Specifies the horizontal resolution of the bitmap in dots per inch.
YResolution
[in] Specifies the vertical resolution of the bitmap in dots per inch.
RawDataPtr
[in] This parameter is treated as a handle to memory buffer containing bitmap data.  The handle is passed as __int64. See the description of the BitmapBitsFormatEnum constants for details on the data format.
PrepareMode
[in] Refers to the PrepareImageMode object that defines the mode of image preparation. It may be 0, in which case default values for the PrepareImageMode properties will be used, or, if a profile has been loaded, the parameters set by this profile are used.
Result
[out, retval] A pointer to IImageDocument* pointer variable that receives the interface pointer of the resulting ImageDocument object.

Return values

This method returns E_NOTIMPL. See details in the standard return values of ABBYY FineReader Engine functions.

See also

Engine

BitmapBitsFormatEnum

Working with Profiles

7/3/2024 8:50:10 AM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.