> 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


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


You can't really call fl_draw_image outside the context of a widget's
draw() method, so this approach isn't going to work.

There's a HowTo here that might help:

http://www.fltk.org/articles.php?L468

A trawl through the other HowTo's a nd FAQ's on the fltk site might find
you some other useful tips, or perhaps check out the examples on Greg's
Tips page:

http://www.seriss.com/people/erco/fltk/







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.
********************************************************************

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

Reply via email to