HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

ImageScaling Property, SftButton Object

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

Syntax

Get

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

Put

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

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 08/02/2026 - (email)
© 2026 Softel vdm, Inc.