Icon ServerScaling Property

property ServerScaling: Boolean

Available In: Visual Client Applications

Specifies whether the application should send the web server two parameters, based upon the ServerMaxWidth and ServerMaxHeight properties:

ParameterProperty
maxwidthServerMaxWidth
maxheightServerMaxHeight

These parameters are used to perform scaling of the image on the web server before it is sent back in the response body. This is often preferable to sending a very large image, only for the client to be forced to resize the image during layout and display.

The scaling of the image is performed, by default, as follows:
  • The maxwidth parameter is compared to the actual width of the image. If the actual width of the image is greater than the maxwidth parameter, the width is set to the value of the maxwidth parameter and the height of the image is proportionally set based upon the reduction of the width.

  • The maxheight parameter is compared to the actual height of the image. If the actual height of the image is greater than the maxheight parameter, the height is set to the value of the maxheight parameter and the width of the image is proportionally set based upon the reduction of the height.

  • If the actual width and height of the image is less than the maxwidth and maxheight parameters, then the image is sent to the client.
Image