HeaderPane
Main
Hide
Share Link
Print

ImageScaling Property, SftButton Object

Defines whether the images supplied to the control are scaled to the current DPI.

Syntax

Get

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

Put

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

object

A SftButton object.

Mode

Defines whether the images supplied to the control are scaled to the current DPI.

NameValueDescription
scalingSftButtonAsIs0Draw every image at its native pixel size.
scalingSftButtonStretch1Scale every image by the current DPI (the default).

Comments

The ImageScaling property defines whether the images supplied to the control - the Image1 and Image2 families, and the background images, including their hover, pressed and disabled variants - are scaled by the current DPI when they are drawn.

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


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