CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
Public Member Functions

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

Functor converting a grey level pixel to a ARGB pixel. More...

List of all members.

Public Member Functions

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

Detailed Description

Functor converting a grey level pixel to a ARGB pixel.

Definition at line 134 of file jpeg.hpp.


Member Function Documentation

claw::graphic::rgba_pixel_8 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::rgba_pixel::components.

{
  rgba_pixel_8 result;

  result.components.alpha = 255;
  result.components.red = pixel[0];
  result.components.green = pixel[0];
  result.components.blue = pixel[0];

  return result;
} // jpeg::reader::grayscale_to_pixel32::operator()()

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