Defines whether the pictures of special dates and formatted days are scaled to the current DPI.
Get
| C# | SftDateScalingConstants Mode = object.ImageScaling; |
| VB.NET | Mode = object.ImageScaling As SftDateScalingConstants |
| C++ | enum SftDateScalingConstants Mode = object->ImageScaling; enum SftDateScalingConstants Mode = object->GetImageScaling(); |
| C | HRESULT object->get_ImageScaling(enum SftDateScalingConstants* Mode); |
Put
| C# | SftDateScalingConstants object.ImageScaling = Mode; |
| VB.NET | object.ImageScaling = Mode As SftDateScalingConstants |
| C++ | enum SftDateScalingConstants object->ImageScaling = Mode; void object->PutImageScaling(enum SftDateScalingConstants Mode); |
| C | HRESULT object->put_ImageScaling(enum SftDateScalingConstants Mode); |
object
Mode
Defines whether the pictures of special dates and formatted days are scaled to the current DPI.
| Name | Value | Description |
|---|---|---|
| scalingSftDateAsIs | 0 | As is (native size) |
| scalingSftDateStretch | 1 | Stretch (scale by DPI) |
The ImageScaling property defines how the pictures of special dates (SftDateSpecialDate.Picture) and of days formatted in the DayFormatting event are scaled. The default is scalingSftDateAsIs. A picture is never taller than half the height of its day. p With scalingSftDateStretch, images prepared at 96 DPI keep their physical size on a high-DPI monitor, at the cost of some softness. For the best quality, supply higher-resolution images and keep scalingSftDateAsIs. The current DPI is returned by the DPI property.
See Also SftCalendar Object | Object Hierarchy | Per-Monitor DPI and Scaling