LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
ColorMask Class Reference

#include <ColorMask.hxx>

Collaboration diagram for ColorMask:
[legend]

Public Member Functions

 ColorMask (const ColorMaskElement &rRedMask=ColorMaskElement(), const ColorMaskElement &rGreenMask=ColorMaskElement(), const ColorMaskElement &rBlueMask=ColorMaskElement())
 
sal_uInt32 GetRedMask () const
 
sal_uInt32 GetGreenMask () const
 
sal_uInt32 GetBlueMask () const
 
void GetColorFor8Bit (BitmapColor &rColor, const sal_uInt8 *pPixel) const
 
void SetColorFor8Bit (const BitmapColor &rColor, sal_uInt8 *pPixel) const
 
void GetColorFor16BitMSB (BitmapColor &rColor, const sal_uInt8 *pPixel) const
 
void SetColorFor16BitMSB (const BitmapColor &rColor, sal_uInt8 *pPixel) const
 
void GetColorFor16BitLSB (BitmapColor &rColor, const sal_uInt8 *pPixel) const
 
void SetColorFor16BitLSB (const BitmapColor &rColor, sal_uInt8 *pPixel) const
 
void GetColorFor32Bit (BitmapColor &rColor, const sal_uInt8 *pPixel) const
 
void GetColorAndAlphaFor32Bit (BitmapColor &rColor, sal_uInt8 &rAlpha, const sal_uInt8 *pPixel) const
 
void SetColorFor32Bit (const BitmapColor &rColor, sal_uInt8 *pPixel) const
 

Private Attributes

ColorMaskElement maR
 
ColorMaskElement maG
 
ColorMaskElement maB
 

Detailed Description

Definition at line 89 of file ColorMask.hxx.

Constructor & Destructor Documentation

ColorMask::ColorMask ( const ColorMaskElement rRedMask = ColorMaskElement(),
const ColorMaskElement rGreenMask = ColorMaskElement(),
const ColorMaskElement rBlueMask = ColorMaskElement() 
)
inline

Definition at line 97 of file ColorMask.hxx.

Member Function Documentation

sal_uInt32 ColorMask::GetBlueMask ( ) const
inline

Definition at line 133 of file ColorMask.hxx.

References ColorMaskElement::mnMask.

Referenced by vcl::unotools::VclCanvasBitmap::VclCanvasBitmap().

void ColorMask::GetColorAndAlphaFor32Bit ( BitmapColor rColor,
sal_uInt8 rAlpha,
const sal_uInt8 pPixel 
) const
inline

Definition at line 187 of file ColorMask.hxx.

References MASK_TO_COLOR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

void ColorMask::GetColorFor16BitLSB ( BitmapColor rColor,
const sal_uInt8 pPixel 
) const
inline

Definition at line 164 of file ColorMask.hxx.

References MASK_TO_COLOR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

void ColorMask::GetColorFor16BitMSB ( BitmapColor rColor,
const sal_uInt8 pPixel 
) const
inline

Definition at line 149 of file ColorMask.hxx.

References MASK_TO_COLOR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

void ColorMask::GetColorFor32Bit ( BitmapColor rColor,
const sal_uInt8 pPixel 
) const
inline
void ColorMask::GetColorFor8Bit ( BitmapColor rColor,
const sal_uInt8 pPixel 
) const
inline
sal_uInt32 ColorMask::GetGreenMask ( ) const
inline

Definition at line 128 of file ColorMask.hxx.

References ColorMaskElement::mnMask.

Referenced by vcl::unotools::VclCanvasBitmap::VclCanvasBitmap().

sal_uInt32 ColorMask::GetRedMask ( ) const
inline

Definition at line 123 of file ColorMask.hxx.

References ColorMaskElement::mnMask.

Referenced by vcl::unotools::VclCanvasBitmap::VclCanvasBitmap().

void ColorMask::SetColorFor16BitLSB ( const BitmapColor rColor,
sal_uInt8 pPixel 
) const
inline

Definition at line 171 of file ColorMask.hxx.

References COLOR_TO_MASK, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

void ColorMask::SetColorFor16BitMSB ( const BitmapColor rColor,
sal_uInt8 pPixel 
) const
inline

Definition at line 156 of file ColorMask.hxx.

References COLOR_TO_MASK, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

void ColorMask::SetColorFor32Bit ( const BitmapColor rColor,
sal_uInt8 pPixel 
) const
inline
void ColorMask::SetColorFor8Bit ( const BitmapColor rColor,
sal_uInt8 pPixel 
) const
inline

Member Data Documentation

ColorMaskElement ColorMask::maB
private

Definition at line 93 of file ColorMask.hxx.

ColorMaskElement ColorMask::maG
private

Definition at line 92 of file ColorMask.hxx.

ColorMaskElement ColorMask::maR
private

Definition at line 91 of file ColorMask.hxx.


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