CGContextFillEllipse
CGContextFillEllipse is a function in the Core Graphics framework of Apple's operating systems, used for drawing and filling an elliptical shape within a graphics context. It takes a CGContext reference and a CGRect structure as input. The CGContext represents the drawing surface, such as a view or a PDF document. The CGRect defines the bounding rectangle within which the ellipse will be inscribed. The ellipse is drawn such that its major and minor axes align with the axes of the bounding rectangle. If the bounding rectangle is a square, the result is a circle. This function is part of the Core Graphics drawing API and is commonly used for custom drawing operations in macOS and iOS applications. It is a low-level drawing primitive, meaning it directly manipulates pixel data on the drawing surface. The filled ellipse will adopt the current fill color and other drawing properties set in the CGContext prior to calling the function.