ClanSoft logo
ClanSoft logo

    CL_PCXProvider

Surface 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

Description

Class members

static CL_Surface *create(
         std::string handle,
        CL_InputSourceProvider *provider,
        bool transparent=false,
        unsigned char trans_col=0)
virtual int get_translate_x()
virtual int get_translate_y()
virtual unsigned int get_width()
virtual unsigned int get_height()
virtual unsigned int get_num_frames()
virtual unsigned int get_red_mask()
virtual unsigned int get_green_mask()
virtual unsigned int get_blue_mask()
virtual unsigned int get_alpha_mask()
virtual unsigned int get_depth()
virtual CL_Palette *get_palette()
virtual bool is_indexed()
virtual bool uses_src_colorkey()
virtual unsigned int get_src_colorkey()
virtual void *get_data()
virtual void perform_lock()
virtual void perform_unlock()
virtual void read_header(CL_InputSource *_datafile)
virtual void read_data()

See Also

None


Back to index



This page was built using the Perceps documentation system.