Fits this rectangle inside a containing rectangle, preserving
aspect ratio.
The size is determined by the fit type. You can choose to map
the width of this rectangle into the width of the destination, or
the height into the height of the destination, or both. The
rectangle will be centered inside the containing
rectangle.