CGContextFillStrokePath
CGContextFillRect is a function in the Core Graphics framework of Apple's operating systems, used for drawing filled rectangular areas. It is part of the Quartz 2D graphics API. The function takes a graphics context and a rectangle as input. The graphics context is an object that represents the drawing destination, such as a view, an image, or a PDF document. The rectangle is defined by its origin (x, y coordinates) and its width and height. When called, CGContextFillRect draws a filled rectangle using the current fill color and blend mode defined in the graphics context. The rectangle's path is automatically created and filled by the function. This is a fundamental drawing operation, often used for clearing areas, drawing backgrounds, or creating solid color shapes. It's a straightforward way to render a simple rectangular region with a uniform color.