Oh, I just noticed that the resultant image does differ slightly from 
fig.pnm.
The image saved when the button is pressed is of the button only!
Maybe because the button has focus instead of the Main window.
But as I said before, there is no error generated in the image creation.

BrianT

----- Original Message ----- 
From: "Brian" <[email protected]>
To: "Mirror of fltk.general Newsgroup" <[email protected]>
Sent: Thursday, August 13, 2009 9:03 PM
Subject: Re: [fltk.general] Problem with fl_read_image


> Hi Rodrigo,
>
> I haven't got a working Linux setup at the moment, but I compiled your 
> code
> using FLTK 1.1.9 and the following command
> fltk-config --compile pnmtest.cxx
>
> under Windows Vista using MSys/MinGW (gcc 3.4.5)
> and it works fine.
>
> The fltk-config command resulted in the following (actual) compiler 
> command
>
> g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows -DWIN32  
> -mno-cygwin
> -o pnmtest pnmtest.cxx -mwindows -mno-cygwin
> /usr/local/lib/libfltk.a -lole32 -luuid -lcomctl32 -lwsock32
>
> BrianT
>


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

Reply via email to