Go to the documentation of this file.
   26 #ifndef __SYNFIG_COLOR_PIXELFORMAT_H 
   27 #define __SYNFIG_COLOR_PIXELFORMAT_H 
   62     { 
return static_cast<PixelFormat>((int)lhs|(
int)rhs); }
 
   65     { 
return static_cast<PixelFormat>((int)lhs&(
int)rhs); }
 
   66 #define FLAGS(x,y)        (((x)&(y))==(y)) 
   98                                          unsigned char *out, 
const Gamma &gamma)
 
  102         Color *outcol = 
reinterpret_cast<Color *
>(out);
 
  104         out += 
sizeof(color);
 
  111         alpha = (-(float)color.
get_a()+1) * 255;
 
  115         alpha = (float)color.
get_a() * 255;
 
  135             *out++ = 
static_cast<unsigned char>(alpha);
 
  142             *out++ = 
static_cast<unsigned char>(alpha);
 
  178             *out++ = 
static_cast<unsigned char>(alpha);
 
  189             *out++ = 
static_cast<unsigned char>(alpha);
 
  209                                                const unsigned char *out)
 
  219             color.
set_a((
float)*out++ / 255);
 
  226             color.
set_a((
float)*out++ / 255);
 
  236         color.
set_yuv((
float)*out++ / 255, 0, 0);
 
  242             color.
set_b((
float)*out++ / 255);
 
  243             color.
set_g((
float)*out++ / 255);
 
  244             color.
set_r((
float)*out++ / 255);
 
  248             color.
set_r((
float)*out++ / 255);
 
  249             color.
set_g((
float)*out++ / 255);
 
  250             color.
set_b((
float)*out++ / 255);
 
  262             color.
set_a((
float)*out++ / 255);
 
  269             color.
set_a((
float)*out++ / 255);
 
  282 #endif // __SYNFIG_COLOR_PIXELFORMAT_H