PaintScaling property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

TPaintScaling PaintScaling

Delphi Syntax

PaintScaling: TPaintScaling

Overview

Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Type of resizing to use during painting.

Default is psNormal, which is the fastest. Possible values are:

Value

Meaning

psNormal

normal resize (fastest)

psResample

bilinear interpolation (slower than psNormal, but produces better looking results)

psBicubic

bicubic interpolation (slowest, best quality)

For 1-bit images, the PaintScaling is considered only if BitonalScaling is btsNormal. Otherwise, the FavorBlack and ScaleToGray options take precedence over PaintScaling.

psBicubic produces the same result as psResample when zooming out on an image.

See Also

Elements:

BitonalScaling property

Topics:

Raster Images: Displaying Images