steghide
0.5.1
src
ColorPalette.h
Go to the documentation of this file.
1
/*
2
* steghide 0.5.1 - a steganography program
3
* Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
*
19
*/
20
21
#ifndef SH_COLORPALETTE_H
22
#define SH_COLORPALETTE_H
23
24
#include <vector>
25
26
#include "
RGBTriple.h
"
27
#include "
common.h
"
28
36
class
ColorPalette
:
public
std::vector<RGBTriple> {
37
public
:
41
unsigned
int
getSize
(
void
)
const
42
{
return
size() ; } ;
43
47
void
addEntry
(
RGBTriple
rgb)
48
{ push_back (rgb) ; } ;
49
53
void
addEntry
(
BYTE
r,
BYTE
g,
BYTE
b)
54
{ push_back (
RGBTriple
(r, g, b)) ; } ;
55
} ;
56
57
#endif // ndef SH_COLORPALETTE_H
ColorPalette
a color palette
Definition:
ColorPalette.h:36
ColorPalette::addEntry
void addEntry(BYTE r, BYTE g, BYTE b)
Definition:
ColorPalette.h:53
BYTE
unsigned char BYTE
Definition:
common.h:47
ColorPalette::addEntry
void addEntry(RGBTriple rgb)
Definition:
ColorPalette.h:47
ColorPalette::getSize
unsigned int getSize(void) const
Definition:
ColorPalette.h:41
RGBTriple
Definition:
RGBTriple.h:26
common.h
RGBTriple.h
Generated by
1.8.20