The AspectRatioMode can be one of:
Constant | Description |
---|---|
Enums. | (0) The size is scaled freely. The aspect ratio is not preserved. |
Enums. | (1) The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio. |
Enums. | (2) The size is scaled to a rectangle as small as possible outside given rectangle, preserving the aspect ratio. |