PaintSizeUseDPI property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax BOOL PaintSizeUseDPI

Overview:  Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Gets or sets a value that indicates whether LEAD's automated scaling properties are used to account for the physical resolution of the bitmap. Possible values are:

Value

Meaning

TRUE

Account for the physical resolution.

FALSE

Do not account for the physical resolution.

The physical resolution of a bitmap is measured in dots per inch (DPI). When you load an image, the BitmapXRes and BitmapYRes properties are updated with the DPI values for the horizontal and vertical resolution. Some images have different horizontal and vertical resolutions (for example: 300 by 600). In such cases, the displayed images will appear elongated if you do not account for the resolution.

If the values of the BitmapXRes property and the BitmapYRes property are not equal, set the PaintSizeUseDPI property to TRUE to have LEAD's automated scaling properties account for the physical resolution of the bitmap. These automated scaling properties include:

AutoRepaint property

AutoScroll property

AutoSetRects property

AutoSize property

DstHeight property

DstLeft property

DstTop property

DstWidth property

PaintSizeMode property

PaintZoomFactor property

See Also

Elements:  AutoRepaint property, AutoScroll property, AutoSetRects property, AutoSize property, BitmapXRes property, BitmapYRes property, DstHeight property, DstLeft property, DstTop property, DstWidth property, PaintSizeMode property, PaintZoomFactor property

Topics:  Raster Images: Displaying Images