L_DispContainerRemoveBitmapRegion

#include "l_bitmap.h"

L_LTIVW_API L_INT EXT_FUNCTION L_DispContainerRemoveBitmapRegion(hCellWnd, nSubCellIndex, uFlags)

Removes the bitmap region from the image located at the specified cell or sub-cell.

Parameters

L_HWND hCellWnd

A handle to the window that represents the cell on which the function's effect will be applied.

L_INT nSubCellIndex

A zero-based index into the image list attached to the cell specified in nCellIndex. This image contains the region that will be removed. Pass -1 to remove the region from all the bitmaps in the cell. Pass -2 to remove the region from the bitmap in the selected sub-cell.

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

You can create a region either by using one of the LEAD functions. Or you can use the tools in the image viewer that draws different shapes of regions, which are:

Tools for drawing regions can be added to the viewer by calling L_DispContainerAddAction, and can be set by calling L_DispContainerSetAction.

For more information about how to create a region using the medical viewer tools. Refer to Creating a Bitmap Region Inside the Image Viewer.

Required DLLs and Libraries

Platforms

The toolkit comes in Win32 and x64 editions that can support development of software applications for any of the following environments:

Windows 10

Windows 8

Windows 7

Windows Vista

Windows XP

Windows 2000

See Also

Functions

Topics

Example

Remove bitmap regions of the first cell.

L_INT DispContainerRemoveBitmapRegionExample(HDISPCONTAINER hCon) 
{ 
   if (L_DispContainerGetCellCount(hCon, 0) == 0) 
   { 
      MessageBox(NULL, TEXT("you must at least have one cell added to the viewer"), TEXT("No Cell attached"), MB_OK); 
      return FAILURE; 
   } 
 
   HWND hCellWnd = L_DispContainerGetCellWindowHandle(hCon, 0, 0); 
 
   L_INT nRet = L_DispContainerRemoveBitmapRegion(hCellWnd, -1, 0); 
 
   return nRet; 
} 

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

LEADTOOLS Medical Image Viewer C API Help