Draws an image in the specified area.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
- Core Graphics
The image to draw.
The rectangle, in user space coordinates, in which to draw the image.
true, this method fills the context's entire clipping region by tiling many copies of the image, and the
rectparameter defines the origin and size of the tiling pattern.
false(the default), this method draws a single copy of the image in the area defined by the
This method scales the image (disproportionately, if necessary) to fit the bounds specified by the
rect parameter.When the
by parameter is
true, the image is tiled in user space—thus, unlike when drawing with patterns, the current transformation (see the
ctm property) affects the final result.