Is there a way to draw a CGContextDrawRadialGradient as an oval instead of a perfect circle?

Viewed 3449

I need a radial gradient in the shape of an oval or ellipse and it seems like it CGContextDrawRadialGradient can only draw a perfect circle. I've been drawing to a square context then copying/drawing into a rectangular context.

Any better way to do this?

Thanks!

2 Answers
Related