L_MrcLoadBitmap

Summary

Loads an MRC image file into a bitmap. The file can be in any supported image file format.

Syntax

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcLoadBitmap(pszFileName, pBitmap, uStructSize, nPageNo, pfnCallback, pUserData)

Parameters

L_TCHAR * pszFileName

Character string containing the name of the file to load.

pBITMAPHANDLE pBitmap

Pointer to the bitmap handle referencing the target bitmap.

L_UINT uStructSize

Size in bytes, of the structure pointed to by pBitmap, for versioning. Use sizeof( BITMAPHANDLE).

L_INT nPageNo

The page number of a multipage file, which can contain more than one image. When loading a file, this is the exact page number. For more information on multipage files refer to Multipage File Formats.

FILEREADCALLBACK pfnCallback

Reserved for future use. Pass NULL.

L_HANDLE pUserData

Reserved for future use. Pass NULL.

Returns

Value Meaning
SUCCESS The function was successful.
<= 0 An error occurred. Refer to Return Codes.

Comments

This function loads the MRC image files that were saved using either LEAD Proprietary T44 Format or Standard T44 Format.

Note: You can also use L_LoadBitmap to load the MRC image file.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT MrcLoadBitmapExample(L_TCHAR* pszFileName,pBITMAPHANDLE  pBitmap) 
{ 
   L_INT nRet; 
 
   /* Load the MRC file that saved in the LEAD or Standard T44 format*/ 
   nRet = L_MrcLoadBitmap (pszFileName, pBitmap, sizeof(BITMAPHANDLE), 1, NULL, NULL); 
   if (nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Mixed Raster Content (MRC) C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.