1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
23 #ifndef __DRAWING_TIBITS__
24 #define __DRAWING_TIBITS__
26 #include <GraphicsDefs.h>
28 rgb_color ShiftColor(rgb_color , float );
30 bool operator==(const rgb_color &, const rgb_color &);
31 bool operator!=(const rgb_color &, const rgb_color &);
34 Color(int32 r, int32 g, int32 b, int32 alpha = 255)
45 const rgb_color kWhite = { 255, 255, 255, 255};
46 const rgb_color kBlack = { 0, 0, 0, 255};
48 const float kDarkness = 1.06;
49 const float kDimLevel = 0.6;
51 void ReplaceColor(BBitmap *bitmap, rgb_color from, rgb_color to);
52 void ReplaceTransparentColor(BBitmap *bitmap, rgb_color with);