HeaderPane
Main
Hide
Share Link
Print

ImageScaling Property, SftMask Object

Defines whether the control's error images are scaled to the current DPI.

Syntax

Get

C#SftMaskScalingConstants Mode = object.ImageScaling;
VB.NETMode = object.ImageScaling As SftMaskScalingConstants
C++enum SftMaskScalingConstants Mode = object->ImageScaling;
enum SftMaskScalingConstants Mode = object->GetImageScaling();
CHRESULT object->get_ImageScaling(enum SftMaskScalingConstants* Mode);

Put

C#SftMaskScalingConstants object.ImageScaling = Mode;
VB.NETobject.ImageScaling = Mode As SftMaskScalingConstants
C++enum SftMaskScalingConstants object->ImageScaling = Mode;
void object->PutImageScaling(enum SftMaskScalingConstants Mode);
CHRESULT object->put_ImageScaling(enum SftMaskScalingConstants Mode);

object

A SftMask object.

Mode

Defines whether the control's error images are scaled to the current DPI.

NameValueDescription
scalingSftMaskAsIs0Draw the error images at their native pixel size (the default).
scalingSftMaskStretch1Scale the error images by the current DPI.

Comments

The ImageScaling property defines whether the control's error images are scaled to the current DPI.

The setting covers the error images defined using the ImageInvalid, ImageEmpty and ImageRequired properties. With scalingSftMaskStretch, images prepared at 96 DPI keep their physical size on a high-DPI monitor. With scalingSftMaskAsIs, the images are drawn at their native pixel size and appear smaller as the DPI increases.

See Also SftMask Object | Object Hierarchy | Per-Monitor DPI and Scaling


Last Updated 11/15/2026 - (email)
© 2026 Softel vdm, Inc.