Skip to main content
A newer version of this page is available.

SnapImage.Size Property

Specifies the image size.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v18.2.Core.dll

Declaration

Size Size { get; set; }

Property Value

Type Description
Size

A Size structure, specifying the image size.

Remarks

Use the Size property, to preserve the image proportions when a SnapImage is resized, instead of setting its Size and SnapImage.Width separately.

The Size property value is ignored when the SnapImage.UpdateMode property is set to KeepScale, in which case the SnapImage‘s dimensions are controlled by its SnapImage.ScaleX and SnapImage.ScaleY properties.

To specify how the image is resized within SnapImage‘s dimensions, use the SnapImage.ImageSizeMode property.

See Also