Skip to main content
A newer version of this page is available. .
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.v18.2.dll

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 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