/**********************************************************************
 
	Copyright (C) 2003 Hirohisa MORI <joshua@nichibun.ac.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	This program is distributed in the hope that it will be 
	useful, but WITHOUT ANY WARRANTY; without even the 
	implied warranty of MERCHANTABILITY or FITNESS FOR A 
	PARTICULAR PURPOSE.

**********************************************************************/

/***********************************************************************
カラーユーティリティー
　制作：（株）ゼータ
************************************************************************/
#ifndef	_GIF_RGB_H_
#define	_GIF_RGB_H_

#ifdef	WIN32

typedef struct{
	unsigned char b;
	unsigned char g;
	unsigned char r;
	unsigned char x;	
}RGB_w;

typedef struct{
	RGB_w color[256];
}ColorMap;

#else

typedef struct{
	unsigned char b;
	unsigned char g;
	unsigned char r;
	unsigned char x;	
}RGB;

typedef struct{
	RGB color[256];
}ColorMap;

#endif

unsigned char	GetBlue(int data);
unsigned char	GetRed(int data);
unsigned char	GetGreen(int data);
int	GetColorInt(unsigned char r, unsigned char g, unsigned char b);
#ifdef	WIN32
int				GetColorRGB(RGB_w rgb);
#else
int				GetColorRGB(RGB rgb);
#endif

#endif
