xref: /haiku/src/add-ons/translators/gif/LoadPalette.h (revision 5e4c29a6b7d6cf23b6ea0d9dd22bd4abf5c89c1a)
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.
13 //
14 ////////////////////////////////////////////////////////////////////////////////
15 
16 // Additional authors:	John Scipione, <jscipione@gmail.com>
17 
18 #ifndef LOAD_PALETTE_H
19 #define LOAD_PALETTE_H
20 
21 
22 #include <SupportDefs.h>
23 
24 
25 class LoadPalette {
26 public:
27 								LoadPalette();
28 
29 		uint32					ColorForIndex(int index);
30 		void					SetColor(int index, uint8 red, uint8 green, uint8 blue);
31 
32 		int						size;
33 		int						size_in_bits;
34 		int						backgroundindex;
35 		int						transparentindex;
36 		bool					usetransparent;
37 
38 private:
39 		uint32 data[256];
40 };
41 
42 
43 #endif	// LOAD_PALETTE_H
44