PixelLightAPI  .
Public Member Functions
PLGraphics::IEMonochrome Class Reference

Image effect: Convert color to grayscale using "human eye formula" (red*0.299 + green*0.587 + blue*0.114) More...

#include <IEMonochrome.h>

Inheritance diagram for PLGraphics::IEMonochrome:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual PLGRAPHICS_API bool Apply (ImageBuffer &cBuffer) const override
 Apply effect to image buffer.

Detailed Description

Image effect: Convert color to grayscale using "human eye formula" (red*0.299 + green*0.587 + blue*0.114)

Note:
  • The color format "ColorPalette" is not supported

Member Function Documentation

virtual PLGRAPHICS_API bool PLGraphics::IEMonochrome::Apply ( ImageBuffer cBuffer) const [override, virtual]

Apply effect to image buffer.

Parameters:
[in,out]cBufferImage buffer
Returns:
'true' if all went fine, else 'false'

Reimplemented from PLGraphics::ImageEffect.


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:30
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported