LibreOffice Module vcl (master) 1
|
#include <BitmapReadAccess.hxx>
Protected Attributes | |
FncGetPixel | mFncGetPixel |
FncSetPixel | mFncSetPixel |
Protected Attributes inherited from BitmapInfoAccess | |
Bitmap | maBitmap |
BitmapBuffer * | mpBuffer |
ColorMask | maColorMask |
BitmapAccessMode | mnAccessMode |
Private Member Functions | |
BitmapReadAccess (const BitmapReadAccess &)=delete | |
BitmapReadAccess & | operator= (const BitmapReadAccess &)=delete |
Friends | |
class | BitmapWriteAccess |
Definition at line 31 of file BitmapReadAccess.hxx.
BitmapReadAccess::BitmapReadAccess | ( | Bitmap & | rBitmap, |
BitmapAccessMode | nMode = BitmapAccessMode::Read |
||
) |
Definition at line 27 of file BitmapReadAccess.cxx.
References GetPixelFunction(), Bitmap::ImplGetSalBitmap(), BitmapBuffer::maColorMask, BitmapInfoAccess::maColorMask, mFncGetPixel, mFncSetPixel, BitmapInfoAccess::mnAccessMode, BitmapBuffer::mnFormat, BitmapInfoAccess::mpBuffer, and SetPixelFunction().
|
overridevirtual |
Definition at line 51 of file BitmapReadAccess.cxx.
|
privatedelete |
|
inline |
Definition at line 40 of file BitmapReadAccess.hxx.
References BitmapBuffer::mpBits, and BitmapInfoAccess::mpBuffer.
Referenced by writeWebp().
|
inline |
Definition at line 100 of file BitmapReadAccess.hxx.
References GetColor(), and point().
Referenced by GetColor().
|
inline |
Definition at line 89 of file BitmapReadAccess.hxx.
References GetPixel(), GetPixelIndex(), BitmapInfoAccess::HasPalette(), BitmapBuffer::maPalette, and BitmapInfoAccess::mpBuffer.
Referenced by OutputDevice::BlendBitmap(), vcl::bitmap::CanvasCairoExtractBitmapData(), vcl::bitmap::CanvasExtractBitmapData(), BitmapGaussianSeparableBlurFilter::convolutionPass(), BitmapConvolutionMatrixFilter::execute(), BitmapDuoToneFilter::execute(), BitmapMedianFilter::execute(), BitmapSeparableUnsharpenFilter::execute(), GetColorWithFallback(), GetInterpolatedColorWithFallback(), BitmapEx::GetPixelColor(), vcl::bitmap::isHistorical8x8(), vcl::bitmap::readAlpha(), Bitmap::Replace(), vcl::PDFWriterImpl::writeBitmapObject(), and vcl::PDFWriterImpl::writeGradientFunction().
BitmapColor BitmapReadAccess::GetColorWithFallback | ( | double | fY, |
double | fX, | ||
const BitmapColor & | rFallback | ||
) | const |
Get the color at coordinates fY, fX; if outside, return rFallback.
Automatically does the correct inside/outside checks, e.g. static_cast< sal_uInt32 >(-0.25) is 0, not -1 and has to be outside
Definition at line 226 of file BitmapReadAccess.cxx.
References GetColor(), mnHeight, mnWidth, and BitmapInfoAccess::mpBuffer.
|
inline |
Definition at line 66 of file BitmapReadAccess.hxx.
References BitmapColor::GetIndex(), GetPixelFromData(), and pData.
Referenced by OutputDevice::BlendBitmap(), vcl::bitmap::CanvasExtractBitmapData(), Bitmap::CopyPixel(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), DetectEdges(), BitmapColorQuantizationFilter::execute(), BitmapMonochromeFilter::execute(), BitmapMosaicFilter::execute(), BitmapSepiaFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapLightenFilter::execute(), getColor(), vcl::unotools::VclCanvasBitmap::getData(), JPEGWriter::GetScanline(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), Octree::Octree(), and JPEGWriter::Write().
BitmapColor BitmapReadAccess::GetInterpolatedColorWithFallback | ( | double | fY, |
double | fX, | ||
const BitmapColor & | rFallback | ||
) | const |
Get the interpolated color at coordinates fY, fX; if outside, return rFallback.
Definition at line 135 of file BitmapReadAccess.cxx.
References GetColor(), Color::Merge(), mnHeight, mnWidth, and BitmapInfoAccess::mpBuffer.
|
inline |
Definition at line 87 of file BitmapReadAccess.hxx.
References GetPixel(), and point().
Referenced by GetPixel().
|
inline |
Definition at line 78 of file BitmapReadAccess.hxx.
References GetScanline(), BitmapInfoAccess::maColorMask, mFncGetPixel, mnHeight, mnWidth, and BitmapInfoAccess::mpBuffer.
Referenced by vcl::bitmap::CanvasTransformBitmap(), BitmapSymmetryCheck::checkImpl(), BitmapEmbossGreyFilter::execute(), BitmapSobelGreyFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapEx::GetAlpha(), GetColor(), GetPixelIndex(), ImplVectorizer::ImplExpand(), and Bitmap::Rotate().
|
static |
Definition at line 245 of file BitmapReadAccess.cxx.
Referenced by BitmapWriteAccess::CopyScanline(), GetPixelFunction(), and StretchAndConvert().
|
static |
Definition at line 274 of file BitmapReadAccess.cxx.
References Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 296 of file BitmapReadAccess.cxx.
References Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 318 of file BitmapReadAccess.cxx.
References a, ColorAlpha, and vcl::bitmap::unpremultiply().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 367 of file BitmapReadAccess.cxx.
References a, ColorAlpha, and vcl::bitmap::unpremultiply().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 416 of file BitmapReadAccess.cxx.
References a, ColorAlpha, and vcl::bitmap::unpremultiply().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 430 of file BitmapReadAccess.cxx.
References Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 514 of file BitmapReadAccess.cxx.
References ColorMask::GetColorFor32Bit().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 465 of file BitmapReadAccess.cxx.
References a, ColorAlpha, and vcl::bitmap::unpremultiply().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 479 of file BitmapReadAccess.cxx.
References Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 332 of file BitmapReadAccess.cxx.
References Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 381 of file BitmapReadAccess.cxx.
References Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
static |
Definition at line 262 of file BitmapReadAccess.cxx.
Referenced by BitmapWriteAccess::CopyScanline(), and GetPixelFunction().
|
inline |
Definition at line 59 of file BitmapReadAccess.hxx.
References BitmapInfoAccess::maColorMask, mFncGetPixel, and pData.
Referenced by BitmapEx::ChangeColorAlpha(), BitmapSymmetryCheck::checkImpl(), Bitmap::CombineOr(), vcl::bitmap::convertBitmap32To24Plus8(), vcl::unotools::VclCanvasBitmap::convertIntegerToARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerToPARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerToRGB(), Bitmap::CopyPixel(), Bitmap::CopyPixel_AlphaOptimized(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), Bitmap::CreateRegion(), Bitmap::Crop(), OutputDevice::EmulateDrawTransparent(), BitmapColorQuantizationFilter::execute(), BitmapMonochromeFilter::execute(), BitmapMosaicFilter::execute(), BitmapSepiaFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapDisabledImageFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapLightenFilter::execute(), BitmapMaskToAlphaFilter::execute(), getColor(), BitmapEx::GetContour(), GetIndexFromData(), JPEGWriter::GetScanline(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), ImplVectorizer::ImplExpand(), Bitmap::ImplMakeGreyscales(), Octree::Octree(), JPEGWriter::Write(), and writeWebp().
|
static |
Definition at line 55 of file BitmapReadAccess.cxx.
References Bitmap32IsPreMultipled(), GetPixelForN1BitMsbPal(), GetPixelForN24BitTcBgr(), GetPixelForN24BitTcRgb(), GetPixelForN32BitTcAbgr(), GetPixelForN32BitTcArgb(), GetPixelForN32BitTcBgra(), GetPixelForN32BitTcBgrx(), GetPixelForN32BitTcMask(), GetPixelForN32BitTcRgba(), GetPixelForN32BitTcRgbx(), GetPixelForN32BitTcXbgr(), GetPixelForN32BitTcXrgb(), GetPixelForN8BitPal(), N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, and RemoveScanline().
Referenced by BitmapReadAccess(), and StretchAndConvert().
Definition at line 107 of file BitmapReadAccess.hxx.
References GetPixelIndex(), and point().
|
inline |
Definition at line 102 of file BitmapReadAccess.hxx.
References BitmapColor::GetIndex(), and GetPixel().
Referenced by vcl::bitmap::CanvasTransformBitmap(), GetColor(), vcl::unotools::VclCanvasBitmap::getData(), vcl::unotools::VclCanvasBitmap::getPixel(), and GetPixelIndex().
|
inline |
Definition at line 47 of file BitmapReadAccess.hxx.
References BitmapBuffer::mnFormat, mnHeight, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mpBits, BitmapInfoAccess::mpBuffer, and TopDown.
Referenced by OutputDevice::BlendBitmap(), AlphaMask::BlendWith(), vcl::bitmap::CanvasCairoExtractBitmapData(), vcl::bitmap::CanvasExtractBitmapData(), BitmapEx::ChangeColorAlpha(), BitmapSymmetryCheck::checkImpl(), Bitmap::CombineOr(), vcl::bitmap::convertBitmap32To24Plus8(), Bitmap::CopyPixel(), Bitmap::CopyPixel_AlphaOptimized(), BitmapWriteAccess::CopyScanline(), Bitmap::CreateAlphaMask(), Bitmap::CreateMask(), Bitmap::CreateRegion(), Bitmap::Crop(), DetectEdges(), OutputDevice::EmulateDrawTransparent(), BitmapWriteAccess::Erase(), BitmapColorQuantizationFilter::execute(), BitmapMonochromeFilter::execute(), BitmapMosaicFilter::execute(), BitmapSepiaFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapDisabledImageFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapLightenFilter::execute(), BitmapMaskToAlphaFilter::execute(), BitmapWriteAccess::FillRect(), getColor(), BitmapEx::GetContour(), vcl::unotools::VclCanvasBitmap::getData(), vcl::unotools::VclCanvasBitmap::getPixel(), GetPixel(), JPEGWriter::GetScanline(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), ImplVectorizer::ImplExpand(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), Octree::Octree(), vcl::pngWrite(), vcl::bitmap::readAlpha(), BitmapWriteAccess::SetPixel(), JPEGWriter::Write(), vcl::PDFWriterImpl::writeBitmapObject(), vcl::PDFWriterImpl::writeG4Stream(), and writeWebp().
|
inline |
Definition at line 129 of file BitmapReadAccess.hxx.
References BitmapInfoAccess::mpBuffer.
Referenced by BitmapWriteAccess::CopyScanline(), and ImplFastBitmapBlending().
|
privatedelete |
|
static |
Definition at line 251 of file BitmapReadAccess.cxx.
References BitmapColor::GetIndex().
Referenced by SetPixelFunction(), and StretchAndConvert().
|
static |
Definition at line 287 of file BitmapReadAccess.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by SetPixelFunction().
|
static |
Definition at line 309 of file BitmapReadAccess.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by SetPixelFunction().
|
static |
Definition at line 345 of file BitmapReadAccess.cxx.
References alpha, Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and vcl::bitmap::premultiply().
Referenced by SetPixelFunction().
|
static |
Definition at line 394 of file BitmapReadAccess.cxx.
References alpha, Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and vcl::bitmap::premultiply().
Referenced by SetPixelFunction().
|
static |
Definition at line 443 of file BitmapReadAccess.cxx.
References alpha, Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and vcl::bitmap::premultiply().
Referenced by SetPixelFunction().
|
static |
Definition at line 455 of file BitmapReadAccess.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by SetPixelFunction().
|
static |
Definition at line 522 of file BitmapReadAccess.cxx.
References ColorMask::SetColorFor32Bit().
Referenced by SetPixelFunction().
|
static |
Definition at line 492 of file BitmapReadAccess.cxx.
References alpha, Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and vcl::bitmap::premultiply().
Referenced by SetPixelFunction().
|
static |
Definition at line 504 of file BitmapReadAccess.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by SetPixelFunction().
|
static |
Definition at line 357 of file BitmapReadAccess.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by SetPixelFunction().
|
static |
Definition at line 406 of file BitmapReadAccess.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by SetPixelFunction().
|
static |
Definition at line 268 of file BitmapReadAccess.cxx.
References BitmapColor::GetIndex().
Referenced by SetPixelFunction().
|
static |
Definition at line 95 of file BitmapReadAccess.cxx.
References Bitmap32IsPreMultipled(), N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, RemoveScanline(), SetPixelForN1BitMsbPal(), SetPixelForN24BitTcBgr(), SetPixelForN24BitTcRgb(), SetPixelForN32BitTcAbgr(), SetPixelForN32BitTcArgb(), SetPixelForN32BitTcBgra(), SetPixelForN32BitTcBgrx(), SetPixelForN32BitTcMask(), SetPixelForN32BitTcRgba(), SetPixelForN32BitTcRgbx(), SetPixelForN32BitTcXbgr(), SetPixelForN32BitTcXrgb(), and SetPixelForN8BitPal().
Referenced by BitmapReadAccess().
|
inline |
Definition at line 71 of file BitmapReadAccess.hxx.
References BitmapInfoAccess::maColorMask, mFncSetPixel, and pData.
Referenced by vcl::unotools::VclCanvasBitmap::convertIntegerFromARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromPARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromRGB(), BitmapWriteAccess::CopyScanline(), BitmapWriteAccess::Erase(), BitmapMosaicFilter::execute(), BitmapWriteAccess::FillRect(), and ReadRawDIB().
|
friend |
Definition at line 33 of file BitmapReadAccess.hxx.
|
protected |
Definition at line 125 of file BitmapReadAccess.hxx.
Referenced by BitmapReadAccess(), GetPixel(), and GetPixelFromData().
|
protected |
Definition at line 126 of file BitmapReadAccess.hxx.
Referenced by BitmapReadAccess(), BitmapWriteAccess::SetPixel(), and SetPixelOnData().