Specifies the way an image fits into an Image control. The options are:
Copied – The image is copied onto the control as is. If the image is larger than the control, it is cropped. If it is smaller than the control, the uncovered part of the control is painted with the background color.
Distorted Scaling – The image is shrunk or stretched to fill the entire area of the control. The resulting image will be distorted, unless the aspect ratios of the image and the control are identical.
Scaled to Fill – The image is scaled to fill the entire control while maintaining the original aspect ratio of the image. This may result in only part of the image being seen on the control, unless the aspect ratios of the image and the control are identical.
Scaled to Fit – The entire image is scaled onto the control while maintaining the original aspect ratio of the image. This may result in part of the control remaining uncovered, unless the aspect ratios of the image and the control are identical.
Tiled – The image is copied onto the control as many times as needed to fill its entire area.
Since version: 1.5
-
When using animated gif files, the animation will only be seen if the Image Style is set to Copied.
-
To make a control transparent on its background, the control needs to be a two-dimensional (2-D) control and its color has to be a color that has a transparent background.
Platform specific:
On Android and iOS:
-
It is not recommended to use an image defined with the Copied style since it is not factored according to the device DPI, so it will have different sizes in different devices.
-
In the Scaled to Fit style, the image is placed at the center of the Image control.
On Android only:
This property is not available in Web Client tasks.
|