![]() | |
CL_PCXProviderSurface provider that can load PCX files.//: The PCX decoder has been modified to load most PCX files(instead of just the ones created by Deluxe Paint IIe).It now support 1,2,4,8, or 24 bit files... and has been testedin all but a few situations.//: Technically, the implementation cheats in that it doesntstore images with less than 8 bits per pixel in their native format. It simply converts them to PAL8pixelformat instead of creating other pixelformats.//: Also note that the PCX decoder creates more bytes per line than the image is supposed to contain. We rely on the clippingcapabilities of ClanLib to take care of that. Also note that somedefault palettes were defined in the read_header() method. These definitions might be better placed in palette.h. Since the scope of the PCX_Provider rewrite was limited to the provider itself, no filesoutside of pcx_provider.h and pcx_provider.cpp were modified.//: The PCX decoding code was moved to read_data() and read_header()to make it easier to follow the code (called from perform_unlock()).//: There is a chance the transparency is broken now... It is untested. Parents: public CL_SurfaceProvider_Generic DescriptionClass membersstatic CL_Surface *create( std::string handle, CL_InputSourceProvider *provider, bool transparent=false, unsigned char trans_col=0) See AlsoNone |