I need an algorithm to convert a closed bezier curve (perhaps self-crossing) to a binary bitmap: 0 for inside pixels and 1 for outside. I’m writing a code that needs to implement some operations on bezier curves, could anybody give me some resources or tutorials about beziere? Wikipedia and others didn’t say anything about optimization, subtracting, union, knot insertion and deletion and other operations 🙂
alt text http://www.imagechicken.com/uploads/1271001073057545100.jpg
The paper Loop and Blinn, Resolution Independent Curve Rendering
using Programmable Graphics Hardware goes into lots of detail on your question.
Another option is to tessellate the Bezier curve into line segments and then use your favorite polygon fill algorithm.