Determines the horizontal alignment in case of proportional stretching.
Indicates whether an image will be stretched proportionally or not, if both width and height options are provided.
Determines the vertical alignment in case of proportional stretching.
Represents the image drawing settings used by drawImage method.
If neither width nor height options are provided, then the image will be rendered in its original size. If only width is provided, then the image will be scaled proportionally to fit in the provided width. If only height is provided, then the image will be scaled proportionally to fit in the provided height. If both width and height are provided, then image will be stretched to the dimensions depending on the stretchProportionally property.