>
> > For simplicity reason I like to carry the jpeg image inside the
> binary.
> > So I have a data pointer and size of a copy of jpeg file represented
> > inside the program.
> > =
>
> > Is there a way to utilize the FLTK functionality with Fl_JPEG_Image?
> > Fl_JPEG_Image typically wants a filename.
> > Is there a way to tell Fl_JPEG_Image to point it to internal memory?
>
> What version of fltk are you using?
>
> If fltk-1.3 (which is what you should be using for new work, since it is
> the current stable release) then yes, you can do that, using the method:
>
>
> Fl_JPEG_Image::Fl_JPEG_Image(const char *name, const unsigned char
> *data);

Sorry, no not yet. This is based on fltk-1.1.10. I am just try to add on
this image blob.

Is there any other way doing it? I don't have to used jpeg.
Could provide as well a raw bitmap (in rgb?). Its actually for a logo
so it won't be very big.

I just need the to get it display in a box.
Could I just create an instance of FL_Image myimg, fill the necessary data and 
then display it using box.image(myimg).

Is there any sample code available that could guide me.

mk


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

Reply via email to