root/src/add-ons/translators/gif/LoadPalette.h
////////////////////////////////////////////////////////////////////////////////
//
//      File: LoadPalette.h
//
//      Date: December 1999
//
//      Author: Daniel Switkin
//
//      Copyright 2003 (c) by Daniel Switkin. This file is made publically available
//      under the BSD license, with the stipulations that this complete header must
//      remain at the top of the file indefinitely, and credit must be given to the
//      original author in any about box using this software.
//
////////////////////////////////////////////////////////////////////////////////

// Additional authors:  John Scipione, <jscipione@gmail.com>

#ifndef LOAD_PALETTE_H
#define LOAD_PALETTE_H


#include <SupportDefs.h>


class LoadPalette {
public:
                                                                LoadPalette();

                uint32                                  ColorForIndex(int index);
                void                                    SetColor(int index, uint8 red, uint8 green, uint8 blue);

                int                                             size;
                int                                             size_in_bits;
                int                                             backgroundindex;
                int                                             transparentindex;
                bool                                    usetransparent;

private:
                uint32 data[256];
};


#endif  // LOAD_PALETTE_H