Rendering Bezier Curves?

Sebastian Mecklenburg's picture

Hello,

I have a nice shape generator that I want to port to QC. Now I render the result into a CGContextRef using commands like CGContextBeginPath(), CGContextAddCurveToPoint() etc. What would be the best way to reuse this in a QC plugin? Mu current plan is to set up a CGBitmapContext, render into that and then convert it to a QCPlugInOutputImageProvider. Is that reasonable? I searched the forum and there has been some discussion about his topic in the past, but I didn't find any good solution.

Thanks and regards, Sebastian Mecklenburg