Back to Devexpress

ASPxBinaryImage.EnableServerResize Property

aspnet-devexpress-dot-web-dot-aspxbinaryimage-86ca5125.md

latest2.1 KB
Original Source

ASPxBinaryImage.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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool EnableServerResize { get; set; }
vb
<DefaultValue(False)>
Public Property EnableServerResize As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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 reducing the amount of data sent to the client side. In this case, you can specify how an image fits the specified sizes (ASPxImageBase.Height and ASPxImageBase.Width), using the ASPxBinaryImage.ImageSizeMode property.

See Also

Height

Width

ImageSizeMode

Online Demo: Server-Side Resizing

Online Demo: Binary Image Column

ASPxBinaryImage Class

ASPxBinaryImage Members

DevExpress.Web Namespace