> > > I would like to know if is there a way to get the pixels that=20 > > are currently drawn in my component(a custom one), or even in=20 > > the screen? > > I was wondering to do some effects in my components and I was=20 > > also thinking to blur the whole screen except for the dialog,=20 > > like people are doing with java2d to give highlight to a=20 > > desired component. > > And I also want to know if are there some anti-aliasing and=20 > > transparency implementation for fltk?( I know that for the=20 > > official version the answer is no, but if someone already=20 > > faced this problem and solved somehow, it would be great to=20 > > know the solution) > > For the first question, maybe we could draw to a pixmap and=20 > > then forward to the screen, but then I will loose all the=20 > > drawing functions, since they don't handle pixmaps. > > I am not sure I am understyanding your question fully, but I think you > might want to investigate the use of fl_offscreen() methods, to allow > you to draw and composite your GUI in an "offscreen window" then show > the full thing - would that work for you?
Yes, but the problem was how to get this screen to work on, since the methods doesn't required a pixmap, I didn't know how to access this screen. But with the reply from our friend, I saw this routine that could be very useful: Direct Image Reading FLTK provides a single function for reading from the current window or off-screen buffer into a RGB(A) image buffer. uchar *fl_read_image(uchar *p, int X, int Y, int W, int H, int alpha = 0); > > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex= > SS14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** > Thanks, J.Marcelo Auler _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

