ASPxBinaryImage.ImageSizeMode Property
Gets or sets the value specifying how an image fits into the control sizes.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(ImageSizeMode.ActualSizeOrFit)]
public ImageSizeMode ImageSizeMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Image |
Actual |
One of the Image |
Available values:
Name | Description |
---|---|
Actual |
If an image is bigger than the image area the image is reduced to fit the area. If an image is smaller than the image area, its size is not changed. |
Fit |
An image is enlarged or reduced to fit the image area. |
Fill |
An image is enlarged or reduced to fill the image area. Prominent parts are cropped. |
#Remarks
Use the ImageSizeMode specify how an image fits the control sizes specified by the ASPxBinaryImage.Height and ASPxBinaryImage.Width properties.
Image | Value | Description |
---|---|---|
![]() |
Actual |
If an image is bigger than the image area the image is reduced to fit the area. If an image is smaller than the image area, its size is not changed. |
![]() |
Fill |
An image is enlarged or reduced to fill the image area. Prominent parts are cropped. |
![]() |
Fit |
An image is enlarged or reduced to fit the image area. |
Note
The Imagetrue
; otherwise, the image is sent to the server side in original size and resized by a browser.
The Imagetrue
.