Olly wrote:
> Hi there
> 
> I get a segmentation fault whenever I try to use the method 
> FL_image::draw(int,int).

        See:
        http://fltk.org/documentation.php/doc-1.1/drawing.html#drawing

        You can't call draw() directly from main() this way.
        For your program to work (show the image), replace
        "jpg.draw(10,10);" with "box.image(jpg);" instead.

        The image will be drawn at the box's x/y/w/h coordinates,
        based on the box's align() properties, eg:

        [..]
        box.image(jpg);
        box.align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
        [..]

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

Reply via email to