Sets scaling and position to best fit the rectangular area specified.
- x
- A double value which represents the x (horizontal) coordinate point to define the rectangle.
- y
- A double value which represents the y (vertical) coordinate point to define the rectangle.
- width
- A double value which represents the width of the rectangular area.
- height
- A double value which represents the height of the rectangular area.
The image position is changed according to the specified rectangular area with the image positioned where the portion best fits the viewing window. These values are limited by the image width and height.