pushparaj muthu wrote: > Hi > > > > I have stored pixmap (raw data that is copied from screen) in file and > open the file, read raw data in buffer and try to display raw image by > using Fl_Bitmap. It shows black image. > > > It works fine by using Fl_drawimage. But I don't want to use the > Fl_drawimage because we should call this API under class draw function > only > > what is the difference between Fl_drawimage and Fl_Bitmap ? > > > > Please help how to display image by using Fl_Bitmap. > > > > Regards > > pushparaj
Try using a Fl_RGB_Image rather than a Fl_Bitmap. Did you do fl_read_image() to get the "raw data that is copied from [the] screen"? If so, it's most likely in RGB format which is not what Fl_Bitmap is. Mind you, I know very little of the BMP file format other than to stay away from it ;) -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

