LFile::SaveFileCallBack

#include "ltwrappr.h"

virtual L_INT LFile::SaveFileCallBack(pLBitmap, pLBuffer, uRow, uLines)

Provides input to the LFile::SaveFile function.

Parameters

LBitmapBase * pLBitmap

Pointer to the bitmap object that contains the image information.

LBuffer * pLBuffer

Pointer to the caller's input buffer object where the callback function must put the data.

L_UINT uRow

The number of the first line that the callback function must put in the buffer.

L_UINT uLines

The number of lines that the callback function must put in the buffer.

Returns

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

Comments

If you override this function, you must supply the image data that the function will save. The base class implementation saves data from the class object's associated bitmap.

This function does not support signed data images, unless they are DICOM images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image that is not a DICOM image is passed to this function.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

For an example, refer to LFile::LoadFile.

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

LEADTOOLS Raster Imaging C++ Class Library Help