PaintScaling property (ILEADRasterImgList)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

ImageListPaintScalingConstants PaintScaling

Overview

Refer to Using the Image List Control.

Remarks

(Persistent property, available at design time) Type of resizing to use when painting in the ImageList control. Possible values are:

Value

Meaning

IMGLST_PAINTSCALING_NORMAL

[0] normal resize (fastest)

IMGLST_PAINTSCALING_RESAMPLE

[1] bilinear interpolation (slower than IMGLST_PAINTSCALING_NORMAL, but produces better looking results)

IMGLST_PAINTSCALING_BICUBIC

[2] bicubic interpolation (slowest, best quality)

Default is IMGLST_PAINTSCALING_NORMAL, which is the fastest.

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

IMGLST_PAINTSCALING_BICUBIC produces the same result as IMGLST_PAINTSCALING_RESAMPLE when zooming out on an image.

See Also

Elements:

BitonalScaling property

Topics:

Raster Images: Displaying Images