Different ways the image might be placed on the element.

See ImageFill.

See

ImageFill

Enumeration Members

Enumeration Members

Center: 3

Places the image to the center of the full area of the element it's inside of. Image aspect ratio will be kept as is. Image might be clipped or not fill the element on either top/bottom and/or left/right, if the element is not same size as the image.

Fill: 0

Ensures that the image fills the full area of the element it's inside of. Will keep image aspect ratio as is. Image might be clipped on the smaller size axis.

Fit: 1

Ensures that the image fits in the full area of the element it's inside of. Will keep image aspect ratio as is. Image might be not fill the element fully on the larger size axis.

Stretch: 2

Ensures that the image fills the full area of the element it's inside of. Image aspect ratio will be distorted if the element aspect ratio is not same as the image aspect ratio.

Tile: 4

Draws image starting from top left corner of the element it's inside of with exact source size. If the element is larger than the image, then the image will be repeated indefinitely. Can be used for drawing Tileable backgrounds.