LSegment::MrcLoadBitmap

#include "ltwrappr.h"

L_INT LSegment::MrcLoadBitmap(pszFileName, pBitmap, uStructSize, nPageNo)

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

Parameters

L_TCHAR * pszFileName

Character string containing the name of the file to load.

LBitmapBase * pBitmap

Pointer to the target LBitmapBase object that references 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 multi-page file, which can contain more than one image. When loading a file, this is the exact page number. For more information on multi-page files refer to Multipage File Formats.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 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.

Required DLLs and Libraries

See Also

Elements

Topics

Example

The following is a simple example that uses LSegment::MrcLoadBitmap to load an MRC image.

L_INT LSegment__MrcLoadBitmapExample(LBitmapBase & Bitmap, L_TCHAR * pszFileName) 
{ 
   L_INT    nRet; 
   LSegment Segment; 
 
   // Load the image 
   nRet = Segment.MrcLoadBitmap(pszFileName, &Bitmap, sizeof(BITMAPHANDLE), 1); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 

Help Version 20.0.2019.11.25
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS MRC C++ Class Library Help