>
> On Jul 6, 2007, at 4:35 PM, Hans George wrote:
>
> >> Hello everybody!
> >>
> >> I have a simple question. After the following statement:
> >>
> >> SharedImage *image = gifImage::get("images/some_image.gif");
> >>
> >> How do I determine, if the image could be loaded?
> >>
> >> I'm using FLTK2.0, Linux.
> >
> > Can`t anyone answer this question?
>
> Check the width and height. If they are 0, your image was not loaded.

this->p_Image_normal = fltk::pngImage::get("PNGS/wrong_path.xyz");
std::cout << this->p_Image_normal->w() << std::endl;

Hm, that`s the output: "12" although the assigned path is wrong ...

It`s the same with the width()-methode instead of the w()-methode!

Well, I could check for the width if it`s 12, but, yeah, if a loaded has got a 
width of 12 than ...

but, thx a lot for your very fast answer!




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

Reply via email to