Skip to main content
Tab

BinaryImageEditProperties.EnableServerResize Property

Specifies whether an image is resized by the control on the server side, or it is sent to the server side in original size and resized by a browser.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool EnableServerResize { get; set; }

Property Value

Type Default Description
Boolean false

true to resize an image on the server side; false to resize an image by a browser on the client side.

Remarks

Set the EnableServerResize property to true to enable image resizing on the server side, which allows you to reducing the amount of data sent to the client side. In this case, you can specify how an image fits the specified sizes (ImageEditPropertiesBase.ImageHeight and ImageEditPropertiesBase.ImageWidth), using the BinaryImageEditProperties.ImageSizeMode property.

See Also