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

#include <bitmapaccess.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
 
long Width () const
 
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)
 
bool HasPalette () const
 
const BitmapPaletteGetPalette () const
 
sal_uInt16 GetPaletteEntryCount () const
 
const BitmapColorGetPaletteColor (sal_uInt16 nColor) const
 
const BitmapColorGetBestPaletteColor (const BitmapColor &rBitmapColor) const
 
sal_uInt16 GetBestPaletteIndex (const BitmapColor &rBitmapColor) const
 
ColorMaskGetColorMask () const
 

Protected Attributes

Bitmap maBitmap
 
BitmapBuffermpBuffer
 
ColorMask maColorMask
 
BitmapAccessMode const mnAccessMode
 

Private Member Functions

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

Friends

class BitmapReadAccess
 

Detailed Description

Definition at line 33 of file bitmapaccess.hxx.

Constructor & Destructor Documentation

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

Definition at line 71 of file bmpacc.cxx.

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

BitmapInfoAccess::BitmapInfoAccess ( const BitmapInfoAccess )
privatedelete

Member Function Documentation

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

Definition at line 126 of file bitmapaccess.hxx.

References GetBestPaletteIndex(), and GetPaletteColor().

sal_uInt16 BitmapInfoAccess::GetBestPaletteIndex ( const BitmapColor rBitmapColor) const
sal_uInt16 BitmapInfoAccess::GetBitCount ( ) const
inline
ColorMask& BitmapInfoAccess::GetColorMask ( ) const
inline
const BitmapPalette& BitmapInfoAccess::GetPalette ( ) const
inline
const BitmapColor& BitmapInfoAccess::GetPaletteColor ( sal_uInt16  nColor) const
inline
sal_uInt16 BitmapInfoAccess::GetPaletteEntryCount ( ) const
inline
ScanlineFormat BitmapInfoAccess::GetScanlineFormat ( ) const
inline
sal_uInt32 BitmapInfoAccess::GetScanlineSize ( ) const
inline
bool BitmapInfoAccess::HasPalette ( ) const
inline
long BitmapInfoAccess::Height ( ) const
inline

Definition at line 51 of file bitmapaccess.hxx.

References BitmapBuffer::mnHeight, and mpBuffer.

Referenced by Bitmap::Adjust(), BitmapEx::AdjustTransparency(), Bitmap::Blend(), vcl::bitmap::CanvasCairoExtractBitmapData(), BitmapSymmetryCheck::checkImpl(), Bitmap::CombineSimple(), BitmapWriteAccess::CopyBuffer(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateMask(), Bitmap::Dither(), vcl::bitmap::DrawAlphaBitmapAndAlphaGradient(), vcl::bitmap::DrawAndClipBitmap(), OutputDevice::DrawShadowBitmapEx(), OutputDevice::EmulateDrawTransparent(), Bitmap::Erase(), BitmapPopArtFilter::execute(), BitmapColorizeFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapSolarizeFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapMosaicFilter::execute(), BitmapScaleSuperFilter::execute(), Bitmap::Expand(), BitmapEx::GetColorModel(), BitmapEx::GetContour(), vcl::unotools::VclCanvasBitmap::getData(), vcl::unotools::VclCanvasBitmap::getPixel(), BitmapEx::GetSplitData(), Bitmap::ImplConvertDown(), Bitmap::ImplConvertGhosted(), ImplVectorizer::ImplExpand(), ImplFastBitmapBlending(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), vcl::PNGWriterImpl::ImplWriteHeader(), Bitmap::Invert(), Bitmap::Mirror(), BitmapEx::ModifyBitmapEx(), Octree::Octree(), XBMReader::ReadXBM(), AlphaMask::Replace(), Bitmap::Replace(), BitmapEx::setAlphaFrom(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), JPEGWriter::Write(), vcl::PDFWriterImpl::writeBitmapObject(), and vcl::PDFWriterImpl::writeG4Stream().

bool BitmapInfoAccess::IsBottomUp ( ) const
inline

Definition at line 63 of file bitmapaccess.hxx.

References IsTopDown().

bool BitmapInfoAccess::IsTopDown ( ) const
inline

Definition at line 56 of file bitmapaccess.hxx.

References BitmapBuffer::mnFormat, mpBuffer, and TopDown.

Referenced by OpenGLHelper::ConvertBufferToBitmapEx(), and IsBottomUp().

bool BitmapInfoAccess::operator! ( ) const
inline

Definition at line 41 of file bitmapaccess.hxx.

References mpBuffer.

BitmapInfoAccess& BitmapInfoAccess::operator= ( const BitmapInfoAccess )
privatedelete
long BitmapInfoAccess::Width ( ) const
inline

Definition at line 46 of file bitmapaccess.hxx.

References BitmapBuffer::mnWidth, and mpBuffer.

Referenced by Bitmap::Adjust(), BitmapEx::AdjustTransparency(), Bitmap::Blend(), vcl::bitmap::CanvasCairoExtractBitmapData(), BitmapSymmetryCheck::checkImpl(), Bitmap::CombineSimple(), BitmapWriteAccess::CopyScanline(), JPEGReader::CreateIntermediateGraphic(), Bitmap::CreateMask(), Bitmap::Dither(), vcl::bitmap::DrawAlphaBitmapAndAlphaGradient(), vcl::bitmap::DrawAndClipBitmap(), OutputDevice::DrawShadowBitmapEx(), OutputDevice::EmulateDrawTransparent(), Bitmap::Erase(), BitmapPopArtFilter::execute(), BitmapColorizeFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapSolarizeFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapMosaicFilter::execute(), BitmapScaleSuperFilter::execute(), Bitmap::Expand(), BitmapEx::GetColorModel(), BitmapEx::GetContour(), vcl::unotools::VclCanvasBitmap::getData(), vcl::unotools::VclCanvasBitmap::getPixel(), JPEGWriter::GetScanline(), BitmapEx::GetSplitData(), Bitmap::ImplConvertDown(), Bitmap::ImplConvertGhosted(), ImplVectorizer::ImplExpand(), ImplFastBitmapBlending(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), vcl::PNGWriterImpl::ImplWriteHeader(), Bitmap::Invert(), Bitmap::Mirror(), BitmapEx::ModifyBitmapEx(), Octree::Octree(), XBMReader::ReadXBM(), AlphaMask::Replace(), Bitmap::Replace(), BitmapEx::setAlphaFrom(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), JPEGWriter::Write(), vcl::PDFWriterImpl::writeBitmapObject(), and vcl::PDFWriterImpl::writeG4Stream().

Friends And Related Function Documentation

friend class BitmapReadAccess
friend

Definition at line 35 of file bitmapaccess.hxx.

Member Data Documentation

Bitmap BitmapInfoAccess::maBitmap
protected
ColorMask BitmapInfoAccess::maColorMask
protected
BitmapAccessMode const BitmapInfoAccess::mnAccessMode
protected
BitmapBuffer* BitmapInfoAccess::mpBuffer
protected

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