LMemoryFile::LoadMemoryCallBack
#include "ltwrappr.h"
virtual L_INT LMemoryFile::LoadMemoryCallBack(pFileInfo, pLBitmap, pLBuffer, uFlags, nRow, nLines)
| pFILEINFO pFileInfo; | /* pointer to a FILEINFO structure */ | 
| LBitmapBase L_FAR * pLBitmap; | /* pointer to an LBitmapBase object */ | 
| /* pointer to an LBuffer object */ | |
| L_UINT uFlags; | /* flags for first and last row, and first and last pass*/ | 
| L_INT nRow; | /* current row number of the first line in the buffer */ | 
| L_INT nLines; | /* number of lines in the buffer */ | 
Handles the output image data that the LMemoryFile::LoadMemory function has written to a buffer.
| Parameter | Description | |
| pFileInfo | Pointer to the FILEINFO structure that contains image information. | |
| pLBitmap | Pointer to the bitmap object referencing the bitmap that contains the image information. | |
| pLBuffer | Pointer to a buffer object containing one or more lines of output image data that the calling function has already processed (read or decompressed). | |
| uFlags | Flags that describe whether this is the first or last call of the callback, and whether the buffer contains first or last row of image data. Possible values are: | |
| 
 | Value | Meaning | 
| 
 | FILEREAD_FIRSTPASS | [0x0001] This is the first pass through a progressive JPEG or CMP file. | 
| 
 | FILEREAD_LASTPASS | [0x0002] This is the last pass through a progressive JPEG or CMP file. | 
| 
 | FILEREAD_FIRSTROW | [0x0004] The first row of the buffer is the first row of the bitmap. | 
| 
 | FILEREAD_LASTROW | [0x0008] The last row of the buffer is the last row of the bitmap. | 
| 
 | FILEREAD_COMPRESSED | [0x0010] The data in the buffer is 1-bit compressed data, which you can handle as explained Speeding Up 1-Bit Documents. | 
| nRow | The current bitmap row number of the first line in the buffer. | |
| nLines | The number of lines in the pLBuffer buffer object. | |
Returns
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
Required DLLs and Libraries
| LTFIL For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. | 
See Also
| Functions: | 
Example
For an example, refer to LMemoryFile::LoadMemory.