Dear Community,
In my previous question I asked how to load an JPEG-Image on demand. This now works fine for me. Now another difficulty has occurred. I have to run the application on an embedded Device driven by a Blackfin BF537 and uClinux. I use nano-X 0.92 with nxlib 0.45 as windowing system to show the application on an 7" TFT. I have an amount of 32 Megs Ram and the system and other really important programs running on system need about 23 Megs. When I start my App and nano-X 4.2 to 4.5 Megs of Ram are away. So I have about 4 Megs to load a JPEG image. When I start loading the Picture the constructor-call does its job (Fl_JPEG_Image *jpg = new Fl_Jpeg_Image(filename)),this needs about 700K of RAM, also I can call a reference of jpg to my picturebox (/*Fl_Box*/ picturebox->image(jpg)). When I do a redraw of picturebox (picturebox->redraw()) I see in console that "XCreatePixmap 640x480 pixel with 16bit depth" is called by nano-X and then the app is going to crash because nano-X is running out of Ram. My intention is that nano-X is doing anywhere twice a malloc to reserve memory for the picture. I don't know where. I think a solution for the problem is to load the picture in many tiles. I searched therefore in the docs and I found Fl_Tile_Image. Is this suitable or do I have to write my derived class "picturebox" which draws the picture in tiles? And is there any hint to do so? Thank you very much Michael _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

