SnapImage.Size Property
Specifies the image size.
Namespace: DevExpress.Snap.Core.API
Assembly: DevExpress.Snap.v21.2.Core.dll
NuGet Package: DevExpress.Snap.Core
Declaration
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