Defines whether the control's error images are scaled to the current DPI.
Get
| C# | SftMaskScalingConstants Mode = object.ImageScaling; |
| VB.NET | Mode = object.ImageScaling As SftMaskScalingConstants |
| C++ | enum SftMaskScalingConstants Mode = object->ImageScaling; enum SftMaskScalingConstants Mode = object->GetImageScaling(); |
| C | HRESULT object->get_ImageScaling(enum SftMaskScalingConstants* Mode); |
Put
| C# | SftMaskScalingConstants object.ImageScaling = Mode; |
| VB.NET | object.ImageScaling = Mode As SftMaskScalingConstants |
| C++ | enum SftMaskScalingConstants object->ImageScaling = Mode; void object->PutImageScaling(enum SftMaskScalingConstants Mode); |
| C | HRESULT object->put_ImageScaling(enum SftMaskScalingConstants Mode); |
object
Mode
Defines whether the control's error images are scaled to the current DPI.
| Name | Value | Description |
|---|---|---|
| scalingSftMaskAsIs | 0 | Draw the error images at their native pixel size (the default). |
| scalingSftMaskStretch | 1 | Scale the error images by the current DPI. |
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