LibreOffice Module vcl (master) 1
|
#include <canvasbitmap.hxx>
Public Member Functions | |
virtual css::geometry::IntegerSize2D SAL_CALL | getSize () override |
virtual sal_Bool SAL_CALL | hasAlpha () override |
virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL | getScaledBitmap (const css::geometry::RealSize2D &newSize, sal_Bool beFast) override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override |
css::uno::Reference< css::rendering::XBitmapPalette > | getPalette () |
virtual css::rendering::IntegerBitmapLayout SAL_CALL | getMemoryLayout () override |
virtual sal_Int32 SAL_CALL | getNumberOfEntries () override |
virtual sal_Bool SAL_CALL | getIndex (css::uno::Sequence< double > &entry, ::sal_Int32 nIndex) override |
virtual sal_Bool SAL_CALL | setIndex (const css::uno::Sequence< double > &color, sal_Bool transparency, ::sal_Int32 nIndex) override |
virtual css::uno::Reference< css::rendering::XColorSpace > SAL_CALL | getColorSpace () override |
virtual ::sal_Int8 SAL_CALL | getType () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getComponentTags () override |
virtual ::sal_Int8 SAL_CALL | getRenderingIntent () override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getProperties () override |
virtual css::uno::Sequence< double > SAL_CALL | convertColorSpace (const css::uno::Sequence< double > &deviceColor, const css::uno::Reference< css::rendering::XColorSpace > &targetColorSpace) override |
virtual css::uno::Sequence< css::rendering::RGBColor > SAL_CALL | convertToRGB (const css::uno::Sequence< double > &deviceColor) override |
virtual css::uno::Sequence< css::rendering::ARGBColor > SAL_CALL | convertToARGB (const css::uno::Sequence< double > &deviceColor) override |
virtual css::uno::Sequence< css::rendering::ARGBColor > SAL_CALL | convertToPARGB (const css::uno::Sequence< double > &deviceColor) override |
virtual css::uno::Sequence< double > SAL_CALL | convertFromRGB (const css::uno::Sequence< css::rendering::RGBColor > &rgbColor) override |
virtual css::uno::Sequence< double > SAL_CALL | convertFromARGB (const css::uno::Sequence< css::rendering::ARGBColor > &rgbColor) override |
virtual css::uno::Sequence< double > SAL_CALL | convertFromPARGB (const css::uno::Sequence< css::rendering::ARGBColor > &rgbColor) override |
virtual ::sal_Int32 SAL_CALL | getBitsPerPixel () override |
virtual css::uno::Sequence< ::sal_Int32 > SAL_CALL | getComponentBitCounts () override |
virtual ::sal_Int8 SAL_CALL | getEndianness () override |
virtual css::uno::Sequence< double > SAL_CALL | convertFromIntegerColorSpace (const css::uno::Sequence< ::sal_Int8 > &deviceColor, const css::uno::Reference< css::rendering::XColorSpace > &targetColorSpace) override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | convertToIntegerColorSpace (const css::uno::Sequence< ::sal_Int8 > &deviceColor, const css::uno::Reference< css::rendering::XIntegerBitmapColorSpace > &targetColorSpace) override |
virtual css::uno::Sequence< css::rendering::RGBColor > SAL_CALL | convertIntegerToRGB (const css::uno::Sequence< ::sal_Int8 > &deviceColor) override |
virtual css::uno::Sequence< css::rendering::ARGBColor > SAL_CALL | convertIntegerToARGB (const css::uno::Sequence< ::sal_Int8 > &deviceColor) override |
virtual css::uno::Sequence< css::rendering::ARGBColor > SAL_CALL | convertIntegerToPARGB (const css::uno::Sequence< ::sal_Int8 > &deviceColor) override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | convertIntegerFromRGB (const css::uno::Sequence< css::rendering::RGBColor > &rgbColor) override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | convertIntegerFromARGB (const css::uno::Sequence< css::rendering::ARGBColor > &rgbColor) override |
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL | convertIntegerFromPARGB (const css::uno::Sequence< css::rendering::ARGBColor > &rgbColor) override |
VclCanvasBitmap (const BitmapEx &rBitmap) | |
Create API wrapper for given BitmapEx. More... | |
const BitmapEx & | getBitmapEx () const |
Retrieve contained bitmap. Call me with locked Solar mutex! More... | |
Private Member Functions | |
SAL_DLLPRIVATE void | setComponentInfo (sal_uInt32 redShift, sal_uInt32 greenShift, sal_uInt32 blueShift) |
Bitmap::ScopedReadAccess & | getBitmapReadAccess () |
Bitmap::ScopedReadAccess & | getAlphaReadAccess () |
virtual | ~VclCanvasBitmap () override |
Private Attributes | |
BitmapEx | m_aBmpEx |
::Bitmap | m_aBitmap |
::Bitmap | m_aAlpha |
Bitmap::ScopedInfoAccess | m_pBmpAcc |
Bitmap::ScopedInfoAccess | m_pAlphaAcc |
std::optional< Bitmap::ScopedReadAccess > | m_pBmpReadAcc |
std::optional< Bitmap::ScopedReadAccess > | m_pAlphaReadAcc |
css::uno::Sequence< sal_Int8 > | m_aComponentTags |
css::uno::Sequence< sal_Int32 > | m_aComponentBitCounts |
css::rendering::IntegerBitmapLayout | m_aLayout |
sal_Int32 | m_nBitsPerInputPixel |
sal_Int32 | m_nBitsPerOutputPixel |
sal_Int32 | m_nRedIndex |
sal_Int32 | m_nGreenIndex |
sal_Int32 | m_nBlueIndex |
sal_Int32 | m_nAlphaIndex |
sal_Int32 | m_nIndexIndex |
bool | m_bPalette |
Definition at line 32 of file canvasbitmap.hxx.
|
overrideprivatevirtual |
Definition at line 330 of file canvasbitmap.cxx.
|
explicit |
Create API wrapper for given BitmapEx.
rBitmap | Bitmap to wrap. As usual, changes to the original bitmap are not reflected in this object (copy on write). |
Definition at line 115 of file canvasbitmap.cxx.
References BitmapEx::GetAlphaMask(), BitmapInfoAccess::GetBitCount(), AlphaMask::GetBitmap(), ColorMask::GetBlueMask(), BitmapInfoAccess::GetColorMask(), ColorMask::GetGreenMask(), ColorMask::GetRedMask(), BitmapInfoAccess::GetScanlineFormat(), BitmapInfoAccess::GetScanlineSize(), Bitmap::GetSizePixel(), BitmapInfoAccess::Height(), BitmapEx::IsAlpha(), m_aAlpha, m_aBitmap, m_aBmpEx, m_aComponentBitCounts, m_aComponentTags, m_aLayout, m_bPalette, m_nAlphaIndex, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pAlphaAcc, m_pBmpAcc, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, setComponentInfo(), Size::Width(), and BitmapInfoAccess::Width().
Referenced by getScaledBitmap().
|
overridevirtual |
Definition at line 646 of file canvasbitmap.cxx.
References convertToARGB().
|
overridevirtual |
Definition at line 851 of file canvasbitmap.cxx.
References BitmapInfoAccess::GetBestPaletteIndex(), m_aComponentTags, m_bPalette, m_nAlphaIndex, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, and vcl::unotools::toByteColor().
|
overridevirtual |
Definition at line 950 of file canvasbitmap.cxx.
References convertIntegerToARGB(), ENSURE_ARG_OR_THROW2, ENSURE_OR_THROW, Color::GetBlue(), Color::GetGreen(), BitmapInfoAccess::GetPaletteColor(), Color::GetRed(), i, m_aComponentTags, m_bPalette, m_nAlphaIndex, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, pOut, and vcl::unotools::toDoubleColor().
|
overridevirtual |
Definition at line 891 of file canvasbitmap.cxx.
References BitmapInfoAccess::GetBestPaletteIndex(), m_aComponentTags, m_bPalette, m_nAlphaIndex, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, and vcl::unotools::toByteColor().
|
overridevirtual |
Definition at line 811 of file canvasbitmap.cxx.
References BitmapInfoAccess::GetBestPaletteIndex(), m_aComponentTags, m_bPalette, m_nAlphaIndex, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, and vcl::unotools::toByteColor().
|
overridevirtual |
Definition at line 1246 of file canvasbitmap.cxx.
References Alpha, Blue, BitmapInfoAccess::GetBestPaletteIndex(), getBitmapReadAccess(), Green, i, BitmapEx::IsAlpha(), m_aBmpEx, m_bPalette, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, Red, BitmapReadAccess::SetPixelOnData(), and vcl::unotools::toByteColor().
|
overridevirtual |
Definition at line 1296 of file canvasbitmap.cxx.
References Alpha, Blue, BitmapInfoAccess::GetBestPaletteIndex(), getBitmapReadAccess(), Green, i, BitmapEx::IsAlpha(), m_aBmpEx, m_bPalette, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, Red, BitmapReadAccess::SetPixelOnData(), and vcl::unotools::toByteColor().
|
overridevirtual |
Definition at line 1196 of file canvasbitmap.cxx.
References Blue, BitmapInfoAccess::GetBestPaletteIndex(), getBitmapReadAccess(), Green, i, BitmapEx::IsAlpha(), m_aBmpEx, m_bPalette, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, Red, BitmapReadAccess::SetPixelOnData(), and vcl::unotools::toByteColor().
|
overridevirtual |
Definition at line 1085 of file canvasbitmap.cxx.
References ENSURE_OR_THROW, getBitmapReadAccess(), Color::GetBlue(), Color::GetGreen(), BitmapColor::GetIndex(), BitmapInfoAccess::GetPaletteColor(), BitmapReadAccess::GetPixelFromData(), Color::GetRed(), i, BitmapEx::IsAlpha(), m_aBmpEx, m_bPalette, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, pOut, and vcl::unotools::toDoubleColor().
Referenced by convertFromIntegerColorSpace(), and convertToIntegerColorSpace().
|
overridevirtual |
Definition at line 1140 of file canvasbitmap.cxx.
References ENSURE_OR_THROW, getBitmapReadAccess(), Color::GetBlue(), Color::GetGreen(), BitmapColor::GetIndex(), BitmapInfoAccess::GetPaletteColor(), BitmapReadAccess::GetPixelFromData(), Color::GetRed(), i, BitmapEx::IsAlpha(), m_aBmpEx, m_bPalette, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, pOut, and vcl::unotools::toDoubleColor().
|
overridevirtual |
Definition at line 1032 of file canvasbitmap.cxx.
References ENSURE_OR_THROW, getBitmapReadAccess(), Color::GetBlue(), Color::GetGreen(), BitmapColor::GetIndex(), BitmapInfoAccess::GetPaletteColor(), BitmapReadAccess::GetPixelFromData(), Color::GetRed(), i, BitmapEx::IsAlpha(), m_aBmpEx, m_bPalette, m_nBitsPerOutputPixel, pOut, and vcl::unotools::toDoubleColor().
|
overridevirtual |
Definition at line 705 of file canvasbitmap.cxx.
References ENSURE_ARG_OR_THROW2, ENSURE_OR_THROW, Color::GetBlue(), Color::GetGreen(), BitmapInfoAccess::GetPaletteColor(), Color::GetRed(), i, m_aComponentTags, m_bPalette, m_nAlphaIndex, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, pOut, and vcl::unotools::toDoubleColor().
Referenced by convertColorSpace().
|
overridevirtual |
Definition at line 1014 of file canvasbitmap.cxx.
References convertIntegerToARGB().
|
overridevirtual |
Definition at line 758 of file canvasbitmap.cxx.
References ENSURE_ARG_OR_THROW2, ENSURE_OR_THROW, Color::GetBlue(), Color::GetGreen(), BitmapInfoAccess::GetPaletteColor(), Color::GetRed(), i, m_aComponentTags, m_bPalette, m_nAlphaIndex, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, pOut, and vcl::unotools::toDoubleColor().
|
overridevirtual |
Definition at line 656 of file canvasbitmap.cxx.
References ENSURE_ARG_OR_THROW2, ENSURE_OR_THROW, Color::GetBlue(), Color::GetGreen(), BitmapInfoAccess::GetPaletteColor(), Color::GetRed(), i, m_aComponentTags, m_bPalette, m_nBlueIndex, m_nGreenIndex, m_nIndexIndex, m_nRedIndex, m_pBmpAcc, pOut, and vcl::unotools::toDoubleColor().
|
private |
Definition at line 108 of file canvasbitmap.cxx.
References m_aAlpha, and m_pAlphaReadAcc.
Referenced by getData(), and getPixel().
|
inline |
Retrieve contained bitmap. Call me with locked Solar mutex!
Definition at line 115 of file canvasbitmap.hxx.
Referenced by vcl::unotools::bitmapExFromXBitmap().
|
private |
Definition at line 97 of file canvasbitmap.cxx.
References m_aBitmap, and m_pBmpReadAcc.
Referenced by convertIntegerFromARGB(), convertIntegerFromPARGB(), convertIntegerFromRGB(), convertIntegerToARGB(), convertIntegerToPARGB(), convertIntegerToRGB(), getData(), and getPixel().
|
override |
Definition at line 933 of file canvasbitmap.cxx.
References m_nBitsPerOutputPixel.
|
overridevirtual |
Definition at line 617 of file canvasbitmap.cxx.
References vcl::unotools::createStandardColorSpace().
|
overridevirtual |
Definition at line 939 of file canvasbitmap.cxx.
References m_aComponentBitCounts.
|
overridevirtual |
Definition at line 630 of file canvasbitmap.cxx.
References m_aComponentTags.
|
overridevirtual |
Definition at line 358 of file canvasbitmap.cxx.
References tools::Rectangle::Bottom(), getAlphaReadAccess(), getBitmapReadAccess(), BitmapReadAccess::GetIndexFromData(), getMemoryLayout(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), BitmapReadAccess::GetPixelIndex(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::GetScanlineFormat(), BitmapInfoAccess::Height(), i, BitmapEx::IsAlpha(), tools::Rectangle::Left(), m_aBmpEx, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, m_pAlphaAcc, m_pBmpAcc, vcl::unotools::rectangleFromIntegerRectangle2D(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::Top(), TopDown, BitmapInfoAccess::Width(), x, and y.
|
override |
Definition at line 945 of file canvasbitmap.cxx.
|
overridevirtual |
Definition at line 581 of file canvasbitmap.cxx.
References Color::GetBlue(), Color::GetGreen(), BitmapInfoAccess::GetPaletteColor(), BitmapInfoAccess::GetPaletteEntryCount(), Color::GetRed(), BitmapInfoAccess::HasPalette(), m_pBmpAcc, nCount, and nIndex.
|
overridevirtual |
Definition at line 554 of file canvasbitmap.cxx.
References m_aLayout, and m_bPalette.
Referenced by getData(), and getPixel().
|
overridevirtual |
Definition at line 571 of file canvasbitmap.cxx.
References BitmapInfoAccess::GetPaletteEntryCount(), BitmapInfoAccess::HasPalette(), and m_pBmpAcc.
uno::Reference< rendering::XBitmapPalette > VclCanvasBitmap::getPalette | ( | ) |
css::uno::RuntimeException |
Definition at line 543 of file canvasbitmap.cxx.
References m_bPalette.
|
overridevirtual |
Definition at line 469 of file canvasbitmap.cxx.
References getAlphaReadAccess(), getBitmapReadAccess(), getMemoryLayout(), BitmapReadAccess::GetPixelIndex(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::Height(), BitmapEx::IsAlpha(), m_aBmpEx, m_nBitsPerInputPixel, m_nBitsPerOutputPixel, m_pAlphaAcc, m_pBmpAcc, pos, and BitmapInfoAccess::Width().
|
overridevirtual |
Definition at line 641 of file canvasbitmap.cxx.
|
override |
Definition at line 636 of file canvasbitmap.cxx.
|
overridevirtual |
Definition at line 347 of file canvasbitmap.cxx.
References BestQuality, Default, m_aBitmap, BitmapEx::Scale(), vcl::unotools::sizeFromRealSize2D(), and VclCanvasBitmap().
|
overridevirtual |
Definition at line 335 of file canvasbitmap.cxx.
References Bitmap::GetSizePixel(), vcl::unotools::integerSize2DFromSize(), and m_aBitmap.
|
override |
Definition at line 625 of file canvasbitmap.cxx.
|
overridevirtual |
Definition at line 341 of file canvasbitmap.cxx.
References BitmapEx::IsAlpha(), and m_aBmpEx.
|
private |
Definition at line 56 of file canvasbitmap.cxx.
References m_aComponentBitCounts, and m_aComponentTags.
Referenced by VclCanvasBitmap().
|
overridevirtual |
Definition at line 602 of file canvasbitmap.cxx.
References BitmapInfoAccess::GetPaletteEntryCount(), BitmapInfoAccess::HasPalette(), m_pBmpAcc, nCount, and nIndex.
|
private |
Definition at line 40 of file canvasbitmap.hxx.
Referenced by getAlphaReadAccess(), and VclCanvasBitmap().
|
private |
Definition at line 39 of file canvasbitmap.hxx.
Referenced by getBitmapReadAccess(), getScaledBitmap(), getSize(), and VclCanvasBitmap().
|
private |
Definition at line 38 of file canvasbitmap.hxx.
Referenced by convertIntegerFromARGB(), convertIntegerFromPARGB(), convertIntegerFromRGB(), convertIntegerToARGB(), convertIntegerToPARGB(), convertIntegerToRGB(), getData(), getPixel(), hasAlpha(), and VclCanvasBitmap().
|
private |
Definition at line 46 of file canvasbitmap.hxx.
Referenced by getComponentBitCounts(), setComponentInfo(), and VclCanvasBitmap().
|
private |
Definition at line 45 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), getComponentTags(), setComponentInfo(), and VclCanvasBitmap().
|
private |
Definition at line 47 of file canvasbitmap.hxx.
Referenced by getMemoryLayout(), and VclCanvasBitmap().
|
private |
Definition at line 55 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertIntegerFromARGB(), convertIntegerFromPARGB(), convertIntegerFromRGB(), convertIntegerToARGB(), convertIntegerToPARGB(), convertIntegerToRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), getMemoryLayout(), getPalette(), and VclCanvasBitmap().
|
private |
Definition at line 53 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), and VclCanvasBitmap().
|
private |
Definition at line 48 of file canvasbitmap.hxx.
Referenced by convertIntegerFromARGB(), convertIntegerFromPARGB(), convertIntegerFromRGB(), convertIntegerToARGB(), convertIntegerToPARGB(), getData(), getPixel(), and VclCanvasBitmap().
|
private |
Definition at line 49 of file canvasbitmap.hxx.
Referenced by convertIntegerFromARGB(), convertIntegerFromPARGB(), convertIntegerFromRGB(), convertIntegerToARGB(), convertIntegerToPARGB(), convertIntegerToRGB(), getBitsPerPixel(), getData(), getPixel(), and VclCanvasBitmap().
|
private |
Definition at line 52 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), and VclCanvasBitmap().
|
private |
Definition at line 51 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), and VclCanvasBitmap().
|
private |
Definition at line 54 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), and VclCanvasBitmap().
|
private |
Definition at line 50 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), and VclCanvasBitmap().
|
private |
Definition at line 42 of file canvasbitmap.hxx.
Referenced by getData(), getPixel(), and VclCanvasBitmap().
|
private |
Definition at line 44 of file canvasbitmap.hxx.
Referenced by getAlphaReadAccess().
|
private |
Definition at line 41 of file canvasbitmap.hxx.
Referenced by convertFromARGB(), convertFromIntegerColorSpace(), convertFromPARGB(), convertFromRGB(), convertToARGB(), convertToPARGB(), convertToRGB(), getData(), getIndex(), getNumberOfEntries(), getPixel(), setIndex(), and VclCanvasBitmap().
|
private |
Definition at line 43 of file canvasbitmap.hxx.
Referenced by getBitmapReadAccess().