Hi

when I try to display raw data image form file  by using api fl_draw_image .
but it throws error message " Segmentaion fault "

Herewith my piece of code

int main( int argc, char *argv)
{

   Fl_windown *w;
    int fd ;
   unsigned char buff[600 *600 *3] ;

   w= new Fl_window(600,800);

   fd = open("rawdata",O_RDWR);
   read(fd, buff, sizeof(buff));

   fl_draw_image((const uchar*)&buff,0,0,600,600,3,600*3);

   w->show(argc, argv);

   return Fl::run();

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

Reply via email to