LImageViewerCell::GetRulerAttributes

#include "ltwrappr.h"

L_INT LImageViewerCell::GetRulerAttributes(pAttributes);

LPRULERATTRIBS pAttributes;

pointer to a ruler attributes structure

Gets the current attributes of the cell rulers.

Parameter Description
pAttributes Pointer to a RULERATTRIBS structure to be updated with the current cell ruler attributes.

Returns

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

Comments

Before calling LImageViewerCell::GetRulerAttributes apply the following:

To set new cell properties, call LImageViewerCell::GetRulerAttributes.

For more information on the available attributes that can be used to control the shape of the ruler, refer to the RULERATTRIBS structure.

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::SetRulerAttributes, LImageViewer::Create, LImageViewer::RemoveCell, LImageViewer::InsertCell, LImageViewer::GetCellCount, LImageViewer::GetWindowHandle, LImageViewerCell::SetCellBitmapList, LImageViewerCell::SetCellTag, LImageViewerCell::SetCellProperties, LImageViewer::GetCellPosition, LImageViewer::RepositionCell, LImageViewerCell::GetCellBitmapList, LImageViewer::GetCellBounds, LImageViewerCell::FreezeCell, LImageViewer::SetBounds, LImageViewerCell::SelectCell, LImageViewerCell::IsCellSelected, LImageViewerCell::IsCellFrozen, Class Members
Topics: Image Viewer Cells
Window Control/Image Viewer Functions: Annotations

Example

This example changes the ruler by showing the measurement unit next to it.

L_INT LImageViewerCell_GetRulerAttributesExample(LImageViewerCell& ImageViewerCell) 
{ 
   RULERATTRIBS RulerAttributes = {0}; 
   RulerAttributes.uFlags = RULERATTRIBS_ALL; 
   RulerAttributes.uStructSize = sizeof(RULERATTRIBS); 
   ImageViewerCell.GetRulerAttributes(&RulerAttributes); 
   RulerAttributes.bShowMeasurement = TRUE; 
   ImageViewerCell.SetRulerAttributes(&RulerAttributes); 
   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