HeaderPane
Main
Hide
Share Link
Print

PixelScaling Property, SftMask Object

Defines whether caller-supplied pixel dimensions are scaled to the current DPI.

Syntax

Get

C#SftMaskScalingConstants Mode = object.PixelScaling;
VB.NETMode = object.PixelScaling As SftMaskScalingConstants
C++enum SftMaskScalingConstants Mode = object->PixelScaling;
enum SftMaskScalingConstants Mode = object->GetPixelScaling();
CHRESULT object->get_PixelScaling(enum SftMaskScalingConstants* Mode);

Put

C#SftMaskScalingConstants object.PixelScaling = Mode;
VB.NETobject.PixelScaling = Mode As SftMaskScalingConstants
C++enum SftMaskScalingConstants object->PixelScaling = Mode;
void object->PutPixelScaling(enum SftMaskScalingConstants Mode);
CHRESULT object->put_PixelScaling(enum SftMaskScalingConstants Mode);

object

A SftMask object.

Mode

Defines whether caller-supplied pixel dimensions are scaled to the current DPI.

NameValueDescription
scalingSftMaskAsIs0Use caller-supplied pixel values verbatim (the default).
scalingSftMaskStretch1Scale caller-supplied pixel values by the current DPI.

Comments

The PixelScaling property defines whether caller-supplied pixel dimensions are scaled to the current DPI.

The setting covers the caption width defined using the Caption.WidthPix and Caption.Width properties. With scalingSftMaskStretch, the width is interpreted as 96-DPI reference pixels: a width of 100 pixels is 100 pixels at 100%, 150 pixels at 150% and 200 pixels at 200% scaling. The property values themselves do not change.

This setting is independent of ImageScaling.

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


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