LImageViewerCell::GetBitmapHandle

Summary

Retrieves the bitmap handle (or frame) of the specific cell or sub-cell.

Syntax

#include "ltwrappr.h"

L_INT LImageViewerCell::GetBitmapHandle(nSubCellIndex, pBitmap, uFlags)

Parameters

L_INT nSubCellIndex

A zero-based index into the image list attached to the cell. The bitmap handle of the image attached to the sub-cell at this index will be retrieved. Pass -2 to retrieve the bitmap handle of the active sub-cell.

pBITMAPHANDLE pBitmap

Pointer to the variable to be updated with the specific frame as a bitmap handle.

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

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

Comments

This function gives the user a bitmap handle to allow him to modify the attached bitmap using any function in the LEADTOOLS toolkit.

The user must set the bitmap handle be calling LImageViewerCell::SetBitmapHandle function after he is done with it. Otherwise the viewer could view unexpected results.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LImageViewerCell::AnnToRgn.

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

LEADTOOLS Medical Image Viewer C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.