LImageViewerCell::SetScaleTagType

#include "ltwrappr.h"

L_INT LImageViewerCell::SetScaleTagType(uTagType);

L_UINT uTagType;

scale tag type

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

Parameter Description
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

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

LTIVW
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
See Also
Functions: LImageViewerCell::GetScaleTagType, LImageViewer::Create, LImageViewer::Destroy, LImageViewerCell::SetAction, LImageViewerCell::AddAction, LImageViewerCell::GetRulerUnit, LImageViewerCell::SetRulerUnit, LImageViewerCell::CalibrateRuler, Class Members
Topics: Working with Annotations
Image Viewer Functions: The Annotation Feature

Example

This example changes the 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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Medical Image Viewer C++ Class Library Help