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

#include <BitmapInfoAccess.hxx>

Inheritance diagram for BitmapInfoAccess:
[legend]
Collaboration diagram for BitmapInfoAccess:
[legend]

Public Member Functions

 BitmapInfoAccess (Bitmap &rBitmap, BitmapAccessMode nMode=BitmapAccessMode::Info)
 
virtual ~BitmapInfoAccess ()
 
bool operator! () const
 
tools::Long Width () const
 
tools::Long Height () const
 
bool IsTopDown () const
 
bool IsBottomUp () const
 
ScanlineFormat GetScanlineFormat () const
 
sal_uInt32 GetScanlineSize () const
 
sal_uInt16 GetBitCount () const
 
BitmapColor GetBestMatchingColor (const BitmapColor &rBitmapColor) const
 
bool HasPalette () const
 
const BitmapPaletteGetPalette () const
 
sal_uInt16 GetPaletteEntryCount () const
 
const BitmapColorGetPaletteColor (sal_uInt16 nColor) const
 
sal_uInt16 GetBestPaletteIndex (const BitmapColor &rBitmapColor) const
 
const ColorMaskGetColorMask () const
 

Protected Attributes

Bitmap maBitmap
 
BitmapBuffermpBuffer
 
ColorMask maColorMask
 
BitmapAccessMode mnAccessMode
 

Private Member Functions

 BitmapInfoAccess (const BitmapInfoAccess &)=delete
 
BitmapInfoAccessoperator= (const BitmapInfoAccess &)=delete
 

Friends

class BitmapReadAccess
 

Detailed Description

Definition at line 36 of file BitmapInfoAccess.hxx.

Constructor & Destructor Documentation

◆ BitmapInfoAccess() [1/2]

BitmapInfoAccess::BitmapInfoAccess ( Bitmap rBitmap,
BitmapAccessMode  nMode = BitmapAccessMode::Info 
)

◆ ~BitmapInfoAccess()

BitmapInfoAccess::~BitmapInfoAccess ( )
virtual

Definition at line 63 of file BitmapInfoAccess.cxx.

References Bitmap::ImplGetSalBitmap(), maBitmap, mnAccessMode, and mpBuffer.

◆ BitmapInfoAccess() [2/2]

BitmapInfoAccess::BitmapInfoAccess ( const BitmapInfoAccess )
privatedelete

Member Function Documentation

◆ GetBestMatchingColor()

BitmapColor BitmapInfoAccess::GetBestMatchingColor ( const BitmapColor rBitmapColor) const
inline

◆ GetBestPaletteIndex()

sal_uInt16 BitmapInfoAccess::GetBestPaletteIndex ( const BitmapColor rBitmapColor) const

◆ GetBitCount()

sal_uInt16 BitmapInfoAccess::GetBitCount ( ) const
inline

◆ GetColorMask()

const ColorMask & BitmapInfoAccess::GetColorMask ( ) const
inline

◆ GetPalette()

const BitmapPalette & BitmapInfoAccess::GetPalette ( ) const
inline

◆ GetPaletteColor()

const BitmapColor & BitmapInfoAccess::GetPaletteColor ( sal_uInt16  nColor) const
inline

◆ GetPaletteEntryCount()

sal_uInt16 BitmapInfoAccess::GetPaletteEntryCount ( ) const
inline

◆ GetScanlineFormat()

ScanlineFormat BitmapInfoAccess::GetScanlineFormat ( ) const
inline

◆ GetScanlineSize()

sal_uInt32 BitmapInfoAccess::GetScanlineSize ( ) const
inline

◆ HasPalette()

bool BitmapInfoAccess::HasPalette ( ) const
inline

◆ Height()

tools::Long BitmapInfoAccess::Height ( ) const
inline

◆ IsBottomUp()

bool BitmapInfoAccess::IsBottomUp ( ) const
inline

Definition at line 57 of file BitmapInfoAccess.hxx.

References IsTopDown().

Referenced by writeWebp().

◆ IsTopDown()

bool BitmapInfoAccess::IsTopDown ( ) const
inline

Definition at line 50 of file BitmapInfoAccess.hxx.

References BitmapBuffer::mnFormat, mpBuffer, and TopDown.

Referenced by IsBottomUp().

◆ operator!()

bool BitmapInfoAccess::operator! ( ) const
inline

Definition at line 44 of file BitmapInfoAccess.hxx.

References mpBuffer.

◆ operator=()

BitmapInfoAccess & BitmapInfoAccess::operator= ( const BitmapInfoAccess )
privatedelete

◆ Width()

tools::Long BitmapInfoAccess::Width ( ) const
inline

Friends And Related Function Documentation

◆ BitmapReadAccess

friend class BitmapReadAccess
friend

Definition at line 38 of file BitmapInfoAccess.hxx.

Member Data Documentation

◆ maBitmap

Bitmap BitmapInfoAccess::maBitmap
protected

◆ maColorMask

ColorMask BitmapInfoAccess::maColorMask
protected

◆ mnAccessMode

BitmapAccessMode BitmapInfoAccess::mnAccessMode
protected

◆ mpBuffer

BitmapBuffer* BitmapInfoAccess::mpBuffer
protected

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