AnnSetLineWidth method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetLineWidth(HANNOBJECT hObject, double dLineWidth, bool bSelected)

Delphi Syntax

Function AnnSetLineWidth (hObject: HANNOBJECT; dLineWidth: L_DOUBLE; bSelected: Boolean ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the un-scaled line width of one or more annotation objects.

The line width of an object is relative to its container object, and the value is interpreted using the container's scaling factors. For example, suppose you want the line to be three pixels wide on your screen using the current scaling factors. You would use the following calculation, where A is the desired width of three pixels, B is the value that you get from the AnnGetScalarX method, and C is the value that you get from the AnnGetScalarY method:

dLineWidth = A / sqrt( B * C )

For more information, refer to Low-Level Coordinate System for Annotations.

This method does not affect objects that do not have this property or that do not let you change the property. For descriptions of the various types of objects and their properties, refer to Types of Annotations.

See Also

Elements:

AnnGetLineWidth method, AnnSetLineStyle method, AnnGetLineStyle method

Topics:

Annotations (Document/Medical only): Object Manipulation