claw::graphic::jpeg::reader::grayscale_to_pixel32 Class Reference

List of all members.


Detailed Description

Functor converting a grey level pixel to a ARGB pixel.

Definition at line 134 of file jpeg.hpp.


Public Member Functions

pixel32 operator() (const JSAMPLE *pixel) const
 Convert a grey level pixel to a ARGB pixel.

Member Function Documentation

claw::graphic::pixel32 claw::graphic::jpeg::reader::grayscale_to_pixel32::operator() ( const JSAMPLE *  pixel  )  const

Convert a grey level pixel to a ARGB pixel.

Definition at line 198 of file jpeg_reader.cpp.

References claw::graphic::pixel32::alpha, claw::graphic::pixel32::blue, claw::graphic::pixel32::components, claw::graphic::pixel32::green, and claw::graphic::pixel32::red.

00199 {
00200   pixel32 result;
00201 
00202   result.components.alpha = 255;
00203   result.components.red = pixel[0];
00204   result.components.green = pixel[0];
00205   result.components.blue = pixel[0];
00206 
00207   return result;
00208 } // jpeg::reader::grayscale_to_pixel32::operator()()


The documentation for this class was generated from the following files:

Generated on Thu May 22 21:07:38 2008 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.5.5