BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / translators / gif / LoadPalette.h
blob488f6e5f8579aba8d41d1c4bd02a29658c16b7ca
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // File: LoadPalette.h
4 //
5 // Date: December 1999
6 //
7 // Author: Daniel Switkin
8 //
9 // Copyright 2003 (c) by Daniel Switkin. This file is made publically available
10 // under the BSD license, with the stipulations that this complete header must
11 // remain at the top of the file indefinitely, and credit must be given to the
12 // original author in any about box using this software.
14 ////////////////////////////////////////////////////////////////////////////////
16 // Additional authors: John Scipione, <jscipione@gmail.com>
18 #ifndef LOAD_PALETTE_H
19 #define LOAD_PALETTE_H
22 #include <SupportDefs.h>
25 class LoadPalette {
26 public:
27 LoadPalette();
29 uint32 ColorForIndex(int index);
30 void SetColor(int index, uint8 red, uint8 green, uint8 blue);
32 int size;
33 int size_in_bits;
34 int backgroundindex;
35 int transparentindex;
36 bool usetransparent;
38 private:
39 uint32 data[256];
43 #endif // LOAD_PALETTE_H