C#
VB
C++
Determines how to fit the image in the destination rectangle.
Members
| Value | Member | Description |
|---|---|---|
| 0 | Normal | Normal, no sizing |
| 1 | Fit | Fit the image into the destination rectangle while maintaining the aspect ratio. If the image size is smaller than the destination rectangle, no resizing is done. |
| 2 | FitAlways | Always fit the image into the destination rectangle while maintaining the aspect ratio even if the image size is smaller than the destination rectangle. |
| 3 | FitWidth | Fit the image width to be the size of the width of the destination rectangle while maintaining the aspect ratio. |
| 4 | Stretch | Fit the image to fill the destination rectangle. Aspect ratio might not be maintained. |