Hi following code work perfectly in windows

char *m_ImageArray;
Fl_RGB_Image *Picture;
Fl_Offscreen of = fl_create_offscreen(500,50);
fl_begin_offscreen(of);

fl_rectf(0,0,500,50,255,0,0);//draw rectangle
//draw some other image here
fl_read_image((uchar*)ImageArray,0,0,500,50);
Picture = new Fl_RGB_Image((uchar*)ImageArray,500,50);
fl_end_offscreen();
fl_delete_offscreen(of);

When i draw the Picture on view it contains the images which i draw in above 
code in windows.
But when i run this code on MAC there is some garbage image on view.
Are above functions windows dependent? if yes then how to solve that issue.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to