HeaderPane
Main
Hide
Share Link
Print

ImageScaling Property, SftCalendar Object

Defines whether the pictures of special dates and formatted days are scaled to the current DPI.

Syntax

Get

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

Put

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

object

A SftCalendar object.

Mode

Defines whether the pictures of special dates and formatted days are scaled to the current DPI.

NameValueDescription
scalingSftDateAsIs0As is (native size)
scalingSftDateStretch1Stretch (scale by DPI)

Comments

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


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