LImageViewerCell::UpdateCellView

Summary

Recalculates the cell's internal values in order to update the view according to the new change made on the image.

Syntax

#include "ltwrappr.h"

L_INT LImageViewerCell::UpdateCellView(uFlags)

Parameters

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 is useful when the user applies a certain effect on the cell image that causes the image dimensions to change.

This function will also repaint the cell. To repaint the cell only with recalculated internal data, use the LImageViewerCell::RepaintCell function.

To stop repainting while applying a series of effects without refreshing each time an effect is applied, use the function LImageViewerCell::BeginUpdate to stop the cell from repainting, and then use the function LImageViewerCell::BeginUpdate to repaint everything.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example resizes the first frame of the first cell.

L_INT LImageViewer_UpdateCellViewExample(LImageViewerCell& ImageViewerCell) 
{ 
   L_INT        nRet; 
   BITMAPHANDLE BitmapHandle; 
   LBitmap      Bitmap; 
 
   nRet = ImageViewerCell.GetBitmapHandle(0, &BitmapHandle, 0); 
   if (nRet != SUCCESS) 
      return nRet; 
 
   Bitmap.SetHandle(&BitmapHandle); 
 
   nRet = Bitmap.Size(Bitmap.GetWidth() * 2, Bitmap.GetHeight(), SIZE_BICUBIC); 
   if (nRet != SUCCESS) 
      return nRet; 
 
   pBITMAPHANDLE pBitmapHandle = Bitmap.GetHandle(); 
 
   ImageViewerCell.SetBitmapHandle(0, pBitmapHandle, TRUE, 0); 
   Bitmap.SetHandle(0, 0); 
 
   nRet = ImageViewerCell.UpdateCellView(0); 
   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 Medical Image Viewer C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.