#include "ltwrappr.h"
L_INT LImageViewerCell::SetScaleTagType(uTagType);
Sets the current scale overlay text type for the specified cell.
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. |
| Value | Meaning |
|---|---|
| SUCCESS | The function was successful. |
| 1 | An error occurred. Refer to Return Codes. |
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
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;elseuTagType = CONTAINER_TAG_SCALE_PERCENTAGE;ImageViewerCell.SetScaleTagType(uTagType);return SUCCESS;}