Hello everyone! As a part of a painting program that I'm trying to make, I need to draw on a buffer of pixels, not on the screen.Now as far as I've seen the drawing primitives that FLTK offers, like fl_line(), fl_rectf(), etc. do not have an overloaded version which allows you to redirect the drawing on an array of RGB data or something, kinda like this: fl_line(uchar *image_data, int W, int H, int D, ... other parameters) where other parameters are parameters needed to tell the function what to draw. So what I need is some kind of rasterinzing functions that change the values of a pixel buffer instead of drawing to the screen. Is there any way of doing this whit what FLTK already has to offer??
And if FLTK doesn't have such rasterizing functions does it have some buffer of some kind that I can access??Like maybe a buffer that stores the entire current drawing( beyond the clipping area if possible, cause I need the entire drawing, even the non visible part) for a window or something??And can I easily access it??? If none of the above are possible then I have to write my own drawing primitives from scratch such as Bresenham algorithm for lines and circles, etc.But what really makes my skin crawl is font rasterizing.There's no way I'm doing that on my own.Though FreeType might be an option. I hope you understood what I meant.Any help would be very apreciated. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

