LibreOffice Module vcl (master) 1
|
#include <BitmapInfoAccess.hxx>
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 BitmapPalette & | GetPalette () const |
sal_uInt16 | GetPaletteEntryCount () const |
const BitmapColor & | GetPaletteColor (sal_uInt16 nColor) const |
sal_uInt16 | GetBestPaletteIndex (const BitmapColor &rBitmapColor) const |
const ColorMask & | GetColorMask () const |
Protected Attributes | |
Bitmap | maBitmap |
BitmapBuffer * | mpBuffer |
ColorMask | maColorMask |
BitmapAccessMode | mnAccessMode |
Private Member Functions | |
BitmapInfoAccess (const BitmapInfoAccess &)=delete | |
BitmapInfoAccess & | operator= (const BitmapInfoAccess &)=delete |
Friends | |
class | BitmapReadAccess |
Definition at line 36 of file BitmapInfoAccess.hxx.
BitmapInfoAccess::BitmapInfoAccess | ( | Bitmap & | rBitmap, |
BitmapAccessMode | nMode = BitmapAccessMode::Info |
||
) |
Definition at line 26 of file BitmapInfoAccess.cxx.
References Bitmap::getPixelFormat(), Bitmap::ImplGetSalBitmap(), ImplGetSVData(), Bitmap::ImplMakeUnique(), Bitmap::ImplSetSalBitmap(), maBitmap, mnAccessMode, mpBuffer, and Write.
|
virtual |
Definition at line 63 of file BitmapInfoAccess.cxx.
References Bitmap::ImplGetSalBitmap(), maBitmap, mnAccessMode, and mpBuffer.
|
privatedelete |
|
inline |
Definition at line 80 of file BitmapInfoAccess.hxx.
References GetBestPaletteIndex(), and HasPalette().
Referenced by Bitmap::CombineOr(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), Bitmap::CreateRegion(), OutputDevice::EmulateDrawTransparent(), BitmapEx::GetContour(), and ImplVectorizer::ImplExpand().
sal_uInt16 BitmapInfoAccess::GetBestPaletteIndex | ( | const BitmapColor & | rBitmapColor | ) | const |
Definition at line 73 of file BitmapInfoAccess.cxx.
References BitmapPalette::GetBestIndex(), HasPalette(), BitmapBuffer::maPalette, and mpBuffer.
Referenced by vcl::unotools::VclCanvasBitmap::convertFromARGB(), vcl::unotools::VclCanvasBitmap::convertFromPARGB(), vcl::unotools::VclCanvasBitmap::convertFromRGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromPARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromRGB(), BitmapWriteAccess::Erase(), GetBestMatchingColor(), BitmapWriteAccess::SetFillColor(), BitmapWriteAccess::SetLineColor(), and vcl::PDFWriterImpl::writeBitmapObject().
|
inline |
Definition at line 73 of file BitmapInfoAccess.hxx.
References BitmapBuffer::mnBitCount, and mpBuffer.
Referenced by AlphaMask::BlendWith(), BitmapEx::GetColorModel(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), vcl::PDFWriterImpl::writeBitmapObject(), and vcl::PDFWriterImpl::writeG4Stream().
|
inline |
Definition at line 126 of file BitmapInfoAccess.hxx.
References BitmapBuffer::maColorMask, and mpBuffer.
Referenced by vcl::unotools::VclCanvasBitmap::VclCanvasBitmap().
|
inline |
Definition at line 97 of file BitmapInfoAccess.hxx.
References BitmapBuffer::maPalette, and mpBuffer.
Referenced by vcl::bitmap::CanvasTransformBitmap(), Bitmap::Crop(), BitmapEmbossGreyFilter::execute(), BitmapSobelGreyFilter::execute(), BitmapFastScaleFilter::execute(), Bitmap::Expand(), Bitmap::HasGreyPalette8Bit(), Bitmap::HasGreyPaletteAny(), Bitmap::ImplConvertUp(), Bitmap::ImplMakeGreyscales(), BitmapEx::ModifyBitmapEx(), vcl::pngWrite(), Bitmap::Rotate(), and vcl::PDFWriterImpl::writeBitmapObject().
|
inline |
Definition at line 115 of file BitmapInfoAccess.hxx.
References HasPalette(), BitmapBuffer::maPalette, and mpBuffer.
Referenced by OutputDevice::BlendBitmap(), vcl::bitmap::CanvasCairoExtractBitmapData(), vcl::unotools::VclCanvasBitmap::convertFromIntegerColorSpace(), vcl::unotools::VclCanvasBitmap::convertIntegerToARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerToPARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerToRGB(), vcl::unotools::VclCanvasBitmap::convertToARGB(), vcl::unotools::VclCanvasBitmap::convertToPARGB(), vcl::unotools::VclCanvasBitmap::convertToRGB(), Bitmap::CopyPixel(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), BitmapColorQuantizationFilter::execute(), BitmapMonochromeFilter::execute(), BitmapMosaicFilter::execute(), BitmapSepiaFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapLightenFilter::execute(), getColor(), BitmapEx::GetColorModel(), vcl::unotools::VclCanvasBitmap::getIndex(), JPEGWriter::GetScanline(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), Octree::Octree(), vcl::bitmap::readAlpha(), JPEGWriter::Write(), and vcl::PDFWriterImpl::writeBitmapObject().
|
inline |
Definition at line 106 of file BitmapInfoAccess.hxx.
References BitmapPalette::GetEntryCount(), HasPalette(), BitmapBuffer::maPalette, and mpBuffer.
Referenced by Bitmap::CopyPixel(), BitmapSepiaFilter::execute(), BitmapMaskToAlphaFilter::execute(), BitmapEx::GetColorModel(), vcl::unotools::VclCanvasBitmap::getIndex(), vcl::unotools::VclCanvasBitmap::getNumberOfEntries(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), vcl::unotools::VclCanvasBitmap::setIndex(), and vcl::PDFWriterImpl::writeBitmapObject().
|
inline |
Definition at line 59 of file BitmapInfoAccess.hxx.
References BitmapBuffer::mnFormat, mpBuffer, NONE, and RemoveScanline().
Referenced by OutputDevice::BlendBitmap(), vcl::bitmap::CanvasCairoExtractBitmapData(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), OutputDevice::EmulateDrawTransparent(), BitmapScaleSuperFilter::execute(), BitmapBasicMorphologyFilter::filter(), BitmapFilterStackBlur::filter(), vcl::unotools::VclCanvasBitmap::getData(), Bitmap::ImplMakeGreyscales(), vcl::pngWrite(), vcl::bitmap::readAlpha(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), JPEGWriter::Write(), vcl::PDFWriterImpl::writeBitmapObject(), and writeWebp().
|
inline |
Definition at line 66 of file BitmapInfoAccess.hxx.
References BitmapBuffer::mnScanlineSize, and mpBuffer.
Referenced by BitmapWriteAccess::CopyScanline(), Bitmap::CreateMask(), BitmapWriteAccess::Erase(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), and writeWebp().
|
inline |
Definition at line 88 of file BitmapInfoAccess.hxx.
References BitmapBuffer::maPalette, and mpBuffer.
Referenced by Bitmap::CopyPixel(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), BitmapWriteAccess::Erase(), BitmapScaleSuperFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapMonochromeFilter::execute(), BitmapSepiaFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapLightenFilter::execute(), BitmapMaskToAlphaFilter::execute(), GetBestMatchingColor(), GetBestPaletteIndex(), getColor(), BitmapReadAccess::GetColor(), BitmapEx::GetColorModel(), vcl::unotools::VclCanvasBitmap::getIndex(), vcl::unotools::VclCanvasBitmap::getNumberOfEntries(), GetPaletteColor(), GetPaletteEntryCount(), JPEGWriter::GetScanline(), Bitmap::HasGreyPalette8Bit(), Bitmap::HasGreyPaletteAny(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), ImplFastBitmapBlending(), Bitmap::ImplMakeGreyscales(), Bitmap::Invert(), Octree::Octree(), BitmapWriteAccess::SetFillColor(), vcl::unotools::VclCanvasBitmap::setIndex(), BitmapWriteAccess::SetLineColor(), BitmapWriteAccess::SetPaletteColor(), and JPEGWriter::Write().
|
inline |
Definition at line 48 of file BitmapInfoAccess.hxx.
References BitmapBuffer::mnHeight, and mpBuffer.
Referenced by AlphaMask::BlendWith(), vcl::bitmap::CanvasCairoExtractBitmapData(), BitmapEx::ChangeColorAlpha(), BitmapSymmetryCheck::checkImpl(), Bitmap::CombineOr(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), Bitmap::Dither(), BitmapScaleSuperFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapMosaicFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapEx::GetColorModel(), BitmapEx::GetContour(), vcl::unotools::VclCanvasBitmap::getData(), vcl::unotools::VclCanvasBitmap::getPixel(), ImplVectorizer::ImplExpand(), ImplFastBitmapBlending(), ImplVectorizer::ImplVectorize(), vcl::bitmap::isHistorical8x8(), Octree::Octree(), vcl::pngWrite(), Bitmap::Replace(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), JPEGWriter::Write(), vcl::PDFWriterImpl::writeBitmapObject(), vcl::PDFWriterImpl::writeG4Stream(), and writeWebp().
|
inline |
Definition at line 57 of file BitmapInfoAccess.hxx.
References IsTopDown().
Referenced by writeWebp().
|
inline |
Definition at line 50 of file BitmapInfoAccess.hxx.
References BitmapBuffer::mnFormat, mpBuffer, and TopDown.
Referenced by IsBottomUp().
|
inline |
Definition at line 44 of file BitmapInfoAccess.hxx.
References mpBuffer.
|
privatedelete |
|
inline |
Definition at line 46 of file BitmapInfoAccess.hxx.
References BitmapBuffer::mnWidth, and mpBuffer.
Referenced by AlphaMask::BlendWith(), vcl::bitmap::CanvasCairoExtractBitmapData(), BitmapEx::ChangeColorAlpha(), BitmapSymmetryCheck::checkImpl(), Bitmap::CombineOr(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), Bitmap::Dither(), BitmapScaleSuperFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapMosaicFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapEx::GetColorModel(), BitmapEx::GetContour(), vcl::unotools::VclCanvasBitmap::getData(), vcl::unotools::VclCanvasBitmap::getPixel(), JPEGWriter::GetScanline(), ImplVectorizer::ImplExpand(), ImplFastBitmapBlending(), ImplVectorizer::ImplVectorize(), vcl::bitmap::isHistorical8x8(), Octree::Octree(), vcl::pngWrite(), Bitmap::Replace(), vcl::unotools::VclCanvasBitmap::VclCanvasBitmap(), JPEGWriter::Write(), vcl::PDFWriterImpl::writeBitmapObject(), vcl::PDFWriterImpl::writeG4Stream(), and writeWebp().
|
friend |
Definition at line 38 of file BitmapInfoAccess.hxx.
|
protected |
Definition at line 140 of file BitmapInfoAccess.hxx.
Referenced by BitmapInfoAccess(), BitmapWriteAccess::Erase(), BitmapWriteAccess::FillRect(), and ~BitmapInfoAccess().
|
protected |
Definition at line 142 of file BitmapInfoAccess.hxx.
Referenced by BitmapReadAccess::BitmapReadAccess(), BitmapReadAccess::GetPixel(), BitmapReadAccess::GetPixelFromData(), and BitmapReadAccess::SetPixelOnData().
|
protected |
Definition at line 143 of file BitmapInfoAccess.hxx.
Referenced by BitmapInfoAccess(), BitmapReadAccess::BitmapReadAccess(), and ~BitmapInfoAccess().
|
protected |
Definition at line 141 of file BitmapInfoAccess.hxx.
Referenced by BitmapInfoAccess(), BitmapReadAccess::BitmapReadAccess(), BitmapWriteAccess::CopyScanline(), BitmapWriteAccess::Erase(), GetBestPaletteIndex(), GetBitCount(), BitmapReadAccess::GetBuffer(), BitmapReadAccess::GetColor(), GetColorMask(), BitmapReadAccess::GetColorWithFallback(), BitmapReadAccess::GetInterpolatedColorWithFallback(), GetPalette(), GetPaletteColor(), GetPaletteEntryCount(), BitmapReadAccess::GetPixel(), BitmapReadAccess::GetScanline(), GetScanlineFormat(), GetScanlineSize(), HasPalette(), Height(), BitmapReadAccess::ImplGetBitmapBuffer(), IsTopDown(), operator!(), Width(), and ~BitmapInfoAccess().