LImageViewerCell::SetScaleTagType

#include "ltwrappr.h"

L_INT LImageViewerCell::SetScaleTagType(uTagType);

Sets the current scale overlay text type for the specified cell.

Parameters

L_UINT uTagType

Flag that indicates the type of the scale overlay text. Possible values are:

Value Meaning
CONTAINER_TAG_SCALE_X [0] The scale value is normalized.
CONTAINER_TAG_SCALE_PERCENTAGE [1] The scale value is percetange.

Returns

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

Comments

To get the scale tag type of the cell, use the LImageViewerCell::GetScaleTagType function.

To get the scale of cell or sub-cell, use the LImageViewerCell::GetCellScale function.

To set the scale of cell or sub-cell, use the LImageViewerCell::SetCellScale function.

To set the properties of the scale action, use the LImageViewerCell::SetActionProperties function.

To get the properties of the scale action, use the LImageViewerCell::GetActionProperties function.

To set the scale mode of cell or sub-cell, use the LImageViewerCell::SetCellScaleMode function.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example changes the built-in overlay scale tag type.

L_INT LImageViewerCell_SetScaleTagTypeExample(LImageViewerCell& ImageViewerCell) 
{ 
   ImageViewerCell.SetCellTag(1, DISPWIN_ALIGN_TOPLEFT, DISPWIN_TYPE_SCALE, NULL, 0); 
 
   L_UINT uTagType; 
   ImageViewerCell.GetScaleTagType(&uTagType); 
 
   if (uTagType == CONTAINER_TAG_SCALE_PERCENTAGE) 
      uTagType = CONTAINER_TAG_SCALE_X; 
   else 
      uTagType = CONTAINER_TAG_SCALE_PERCENTAGE; 
 
   ImageViewerCell.SetScaleTagType(uTagType); 
 
   return SUCCESS; 
} 

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

LEADTOOLS Medical Image Viewer C++ Class Library Help