Nicomsoft OCR: Developer's Guide |
C++: | int Img_SaveToMemory(HIMG ImgObj, char* Buffer, int BufferSize, int Format, int Flags) |
C#: | int Img_SaveToMemory(int ImgObj, out System.Array Bytes, int Format, int Flags) |
Visual Basic: | Function Img_SaveToMemory(ByVal ImgObj As Integer, ByRef Bytes As System.Array, ByVal Format As Integer, ByVal Flags As Integer) As Integer |
Java: | int Img_SaveToMemory(HIMG ImgObj, byte[] Bits, int Format, int Flags) |
Delphi: | function Img_SaveToMemory(ImgObj:HIMG; Buffer:pointer; BufferSize:integer; Format:integer; Flags:integer):integer |
ImgObj [IN] – the Image object. You can also specify the Block object to save only a part of the image. | |
Buffer [IN] – a pointer to the buffer that will contain the image after saving. | |
BufferSize [IN] – the buffer size in bytes. To get a buffer size sufficient for storing the image, specify 0. | |
Format [IN] – the destination image file format. See the IMG_FORMAT_XXXXX constants for possible values. | |
Flags [IN] – for the default options, specify 0; for the JPEG format, you can also specify the quality level (1 ... 100). |