Text_Display is inherited by Text_Edit and both crash because the mBuffer is not
initializing when the class is created.
At the END of the class, after all the other stuff is set up add something like this. Fl_Text_Buffer* tmp = new Fl_Text_Buffer(); // default size is fine.
-------------------Here are some mods. - Fl_PNG_Image that can also write PNG data to a file. This has not been cleaned up yet, but it works on my system for now.
I'll clean it up later.
- zData for compressing data in memory.
This makes files comparable to gzip, but doesn't store permissions,
etc. It's mainly for compressing graphics to embed in files. The
resulting file size may be a fifth the size of one created by fluid.
The only dependency on fltk for this class is the Enumerations.H
file, and even that is only for the typedef of 'uchar'.
- zImage is what it's about.
The small (32 bytes) header is enough to generate fltk image files.
See the header definitions to figure out what it does and how to
extract
the w(), h(), and d() parameters from the headers.Hopefully the syntax will be similar enough to fltk standard stuff that
usage will be fairly intuitive for old-timers. See attached files.
01-PNG_Image-read-write.tar.gz
Description: GNU Zip compressed data
02-zdata-zlib-for-embedded-data.tar.gz
Description: GNU Zip compressed data
03-zImage-image-data-compression.tar.gz
Description: GNU Zip compressed data
_______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
