AnnSetBitmapDpiX method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetBitmapDpiX(HANNOBJECT hObject, double dBitmapDpiX, bool bSelected);

Delphi Syntax

Function AnnSetBitmapDpiX(hObject: HANNOBJECT; dBitmapDpiX: L_DOUBLE; bSelected: Boolean): L_INT;

Overview

Refer to Altering Annotation Object Settings.

Remarks

(Document/Medical only) Sets the horizontal Bitmap DPI (dots per inch) value that is used to translate the horizontal distance for an automation object or a ruler object.

Only Automation and Ruler objects are affected. For more information on automation objects, refer to Annotation Automation Object. For more information on ruler objects, refer to Ruler Annotation Object.

Set this value to the bitmap’s X resolution, found in the BitmapXRes property. This method should be called when loading objects or pasting them from the clipboard to containers other than the Main Control's container, which can be accessed through the AnnContainer property. Otherwise, the distances shown by the ruler objects will not be accurate.

See Also

Elements

AnnSetBitmapDpiY method, AnnGetBitmapDpiX method, AnnGetBitmapDpiY method, AnnSetUnit method, AnnGetUnit method, AnnGetDistance method, AnnSetGaugeLength method, AnnGetGaugeLength method, AnnTicMarkLength property

Topics

Annotation Functions (Document/Medical only): Getting and Setting the Ruler Properties

 

Using Rulers in Annotation Objects

 

New Annotation Features of Version 14.5