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 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::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

◆ GetBlueMask()

sal_uInt32 ColorMask::GetBlueMask ( ) const
inline

Definition at line 130 of file ColorMask.hxx.

References maB, and ColorMaskElement::mnMask.

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

◆ GetColorAndAlphaFor32Bit()

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

Definition at line 173 of file ColorMask.hxx.

References maB, maG, maR, MASK_TO_COLOR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

◆ GetColorFor16BitLSB()

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

Definition at line 150 of file ColorMask.hxx.

References maB, maG, maR, MASK_TO_COLOR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

◆ GetColorFor16BitMSB()

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

Definition at line 135 of file ColorMask.hxx.

References maB, maG, maR, MASK_TO_COLOR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

◆ GetColorFor32Bit()

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

◆ GetGreenMask()

sal_uInt32 ColorMask::GetGreenMask ( ) const
inline

Definition at line 125 of file ColorMask.hxx.

References maG, and ColorMaskElement::mnMask.

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

◆ GetRedMask()

sal_uInt32 ColorMask::GetRedMask ( ) const
inline

Definition at line 120 of file ColorMask.hxx.

References maR, and ColorMaskElement::mnMask.

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

◆ SetColorFor16BitLSB()

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

Definition at line 157 of file ColorMask.hxx.

References COLOR_TO_MASK, maB, maG, maR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

◆ SetColorFor16BitMSB()

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

Definition at line 142 of file ColorMask.hxx.

References COLOR_TO_MASK, maB, maG, maR, ColorMaskElement::mnMask, and ColorMaskElement::mnShift.

◆ SetColorFor32Bit()

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

Member Data Documentation

◆ maB

ColorMaskElement ColorMask::maB
private

◆ maG

ColorMaskElement ColorMask::maG
private

◆ maR

ColorMaskElement ColorMask::maR
private

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