Paints a transparent rectangle.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The graphics context in which to paint the rectangle.
The rectangle, in user space coordinates.
If the provided context is a window or bitmap context, Core Graphics clears the rectangle. For other context types, Core Graphics fills the rectangle in a device-dependent manner. However, you should not use this function in contexts other than window or bitmap contexts.
Paints the area within the current path, using the nonzero winding number rule.
Paints the area contained within the provided rectangle, using the fill color in the current graphics state.
Paints the areas contained within the provided rectangles, using the fill color in the current graphics state.
Paints the area of the ellipse that fits inside the provided rectangle, using the fill color in the current graphics state.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software