|
|
Hello,
I want to draw using Fl_Offscreen, doing something like: { Fl_Offscreen oscr = fl_create_offscreen(120, 120);
fl_begin_offscreen(oscr); fl_color(FL_BLACK); fl_rectf(0, 0, 120, 120); fl_color(FL_WHITE); fl_rectf(-10, -10, 100, 100); fl_end_offscreen(); // print offscreen color at (10, 10) fl_delete_offscreen(oscr); }
Two questions:
1) At the end of this code I want check the color of a given point. How can I do that? 2) I write to outside the pixmap (fl_rectf(-10, -10, 100, 100)), is that ok ?
Best regards Håvard
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/28dc87b8-f535-44c9-984e-0aba2ad1640cn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |