![]() |
RasterImage library |
Introduction Screenshots Mailing Lists and IRC Alternative Browsers Special Thanks
FAQ
Download binaries Platforms Compiling Mnemonic Other useful software
Core Message modules Library modules Object modules Coding Guidelines Browse Source Using CVS
Website questions to: |
The rasterimage library is a very small C++ library to read (and later: write) images stored in bitmapped format, eg. JPEG, GIF, PNG, XPM and so on. It uses standard C++ streams for input/output and handles progressive updates. It relies on several existing C libraries to do the hard work of converting the stream of data into an image; the rasterimage library is only intended as a wrapper class to unify the treatment of various image types and give them a proper C++ interface. Unlike other libraries, this one is pure C++, using the standard library and STL. It is not tied to a particular user interface toolkit (like GTK or QT) since images have nothing to do with user interfaces per se. It supports alpha channels (can combine two images or one image and one solid color using alpha channel info) and has optimised internal data formats for various color depths. It does not do any fancy image manipulation.
The main class rasterimage myimg; fstream mystr("image.jpg"); char buffer[1024]; long length; while((length=mystr.read(buffer,1024))) { myimg.write(buffer,length); }
You need all of these support libraries; there is no way to build lib-rasterimage with only a subset of these, sorry. |