ScaleMode property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short ScaleMode

Overview:  Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Specifies the unit of measure for the Main Control.

You can change the unit of measure at any time without affecting measurements that the Main Control maintains. The control accepts floating point values and converts them to pixels internally. This means, for example, that if you set a property value in twips, the value that you get back may be slightly different, since it is rounded to the nearest pixel.

Setting

Description

0

Indicates that one or more of the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties are set to custom values.

1

Twips (1440 twips per logical inch; 567 twips per logical centimeter).

2

Points (72 points per logical inch).

3

Pixels (smallest unit of monitor or printer resolution).

4

Characters (horizontal = 120 twips per unit; vertical = 240 twips per unit).

5

Inches.

6

Millimeters.

7

Centimeters.

See Also

Elements:  ScaleHeight property, ScaleLeft property, ScaleTop property, ScaleWidth property

Topics:  Working with the Control: Client Area Usage
Raster Images: Displaying Images