LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::unotools::VclCanvasBitmap Class Referencefinal

#include <canvasbitmap.hxx>

Inheritance diagram for vcl::unotools::VclCanvasBitmap:
[legend]
Collaboration diagram for vcl::unotools::VclCanvasBitmap:
[legend]

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 BitmapExgetBitmapEx () 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::ScopedReadAccessgetBitmapReadAccess ()
 
Bitmap::ScopedReadAccessgetAlphaReadAccess ()
 
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::ScopedReadAccessm_pBmpReadAcc
 
std::optional< Bitmap::ScopedReadAccessm_pAlphaReadAcc
 
css::uno::Sequence< sal_Int8m_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
 

Detailed Description

Definition at line 32 of file canvasbitmap.hxx.

Constructor & Destructor Documentation

◆ ~VclCanvasBitmap()

VclCanvasBitmap::~VclCanvasBitmap ( )
overrideprivatevirtual

Definition at line 330 of file canvasbitmap.cxx.

◆ VclCanvasBitmap()

VclCanvasBitmap::VclCanvasBitmap ( const BitmapEx rBitmap)
explicit

Member Function Documentation

◆ convertColorSpace()

uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertColorSpace ( const css::uno::Sequence< double > &  deviceColor,
const css::uno::Reference< css::rendering::XColorSpace > &  targetColorSpace 
)
overridevirtual

Definition at line 646 of file canvasbitmap.cxx.

References convertToARGB().

◆ convertFromARGB()

uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual

◆ convertFromIntegerColorSpace()

uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromIntegerColorSpace ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor,
const css::uno::Reference< css::rendering::XColorSpace > &  targetColorSpace 
)
overridevirtual

◆ convertFromPARGB()

uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromPARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual

◆ convertFromRGB()

uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromRGB ( const css::uno::Sequence< css::rendering::RGBColor > &  rgbColor)
overridevirtual

◆ convertIntegerFromARGB()

uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertIntegerFromARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual

◆ convertIntegerFromPARGB()

uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertIntegerFromPARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual

◆ convertIntegerFromRGB()

uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertIntegerFromRGB ( const css::uno::Sequence< css::rendering::RGBColor > &  rgbColor)
overridevirtual

◆ convertIntegerToARGB()

uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertIntegerToARGB ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor)
overridevirtual

◆ convertIntegerToPARGB()

uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertIntegerToPARGB ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor)
overridevirtual

◆ convertIntegerToRGB()

uno::Sequence< rendering::RGBColor > SAL_CALL VclCanvasBitmap::convertIntegerToRGB ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor)
overridevirtual

◆ convertToARGB()

uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertToARGB ( const css::uno::Sequence< double > &  deviceColor)
overridevirtual

◆ convertToIntegerColorSpace()

uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertToIntegerColorSpace ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor,
const css::uno::Reference< css::rendering::XIntegerBitmapColorSpace > &  targetColorSpace 
)
overridevirtual

Definition at line 1014 of file canvasbitmap.cxx.

References convertIntegerToARGB().

◆ convertToPARGB()

uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertToPARGB ( const css::uno::Sequence< double > &  deviceColor)
overridevirtual

◆ convertToRGB()

uno::Sequence< rendering::RGBColor > SAL_CALL VclCanvasBitmap::convertToRGB ( const css::uno::Sequence< double > &  deviceColor)
overridevirtual

◆ getAlphaReadAccess()

Bitmap::ScopedReadAccess & VclCanvasBitmap::getAlphaReadAccess ( )
private

Definition at line 108 of file canvasbitmap.cxx.

References m_aAlpha, and m_pAlphaReadAcc.

Referenced by getData(), and getPixel().

◆ getBitmapEx()

const BitmapEx & vcl::unotools::VclCanvasBitmap::getBitmapEx ( ) const
inline

Retrieve contained bitmap. Call me with locked Solar mutex!

Definition at line 115 of file canvasbitmap.hxx.

Referenced by vcl::unotools::bitmapExFromXBitmap().

◆ getBitmapReadAccess()

Bitmap::ScopedReadAccess & VclCanvasBitmap::getBitmapReadAccess ( )
private

◆ getBitsPerPixel()

sal_Int32 SAL_CALL VclCanvasBitmap::getBitsPerPixel ( )
override

Definition at line 933 of file canvasbitmap.cxx.

References m_nBitsPerOutputPixel.

◆ getColorSpace()

uno::Reference< rendering::XColorSpace > SAL_CALL VclCanvasBitmap::getColorSpace ( )
overridevirtual

Definition at line 617 of file canvasbitmap.cxx.

References vcl::unotools::createStandardColorSpace().

◆ getComponentBitCounts()

uno::Sequence<::sal_Int32 > SAL_CALL VclCanvasBitmap::getComponentBitCounts ( )
overridevirtual

Definition at line 939 of file canvasbitmap.cxx.

References m_aComponentBitCounts.

◆ getComponentTags()

uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::getComponentTags ( )
overridevirtual

Definition at line 630 of file canvasbitmap.cxx.

References m_aComponentTags.

◆ getData()

uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getData ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerRectangle2D &  rect 
)
overridevirtual

◆ getEndianness()

sal_Int8 SAL_CALL VclCanvasBitmap::getEndianness ( )
override

Definition at line 945 of file canvasbitmap.cxx.

◆ getIndex()

sal_Bool SAL_CALL VclCanvasBitmap::getIndex ( css::uno::Sequence< double > &  entry,
::sal_Int32  nIndex 
)
overridevirtual

◆ getMemoryLayout()

rendering::IntegerBitmapLayout SAL_CALL VclCanvasBitmap::getMemoryLayout ( )
overridevirtual

Definition at line 554 of file canvasbitmap.cxx.

References m_aLayout, and m_bPalette.

Referenced by getData(), and getPixel().

◆ getNumberOfEntries()

sal_Int32 SAL_CALL VclCanvasBitmap::getNumberOfEntries ( )
overridevirtual

◆ getPalette()

uno::Reference< rendering::XBitmapPalette > VclCanvasBitmap::getPalette ( )
Exceptions
css::uno::RuntimeException

Definition at line 543 of file canvasbitmap.cxx.

References m_bPalette.

◆ getPixel()

uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getPixel ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerPoint2D &  pos 
)
overridevirtual

◆ getProperties()

uno::Sequence<::beans::PropertyValue > SAL_CALL VclCanvasBitmap::getProperties ( )
overridevirtual

Definition at line 641 of file canvasbitmap.cxx.

◆ getRenderingIntent()

sal_Int8 SAL_CALL VclCanvasBitmap::getRenderingIntent ( )
override

Definition at line 636 of file canvasbitmap.cxx.

◆ getScaledBitmap()

uno::Reference< rendering::XBitmap > SAL_CALL VclCanvasBitmap::getScaledBitmap ( const css::geometry::RealSize2D &  newSize,
sal_Bool  beFast 
)
overridevirtual

◆ getSize()

geometry::IntegerSize2D SAL_CALL VclCanvasBitmap::getSize ( )
overridevirtual

◆ getType()

sal_Int8 SAL_CALL VclCanvasBitmap::getType ( )
override

Definition at line 625 of file canvasbitmap.cxx.

◆ hasAlpha()

sal_Bool SAL_CALL VclCanvasBitmap::hasAlpha ( )
overridevirtual

Definition at line 341 of file canvasbitmap.cxx.

References BitmapEx::IsAlpha(), and m_aBmpEx.

◆ setComponentInfo()

void VclCanvasBitmap::setComponentInfo ( sal_uInt32  redShift,
sal_uInt32  greenShift,
sal_uInt32  blueShift 
)
private

Definition at line 56 of file canvasbitmap.cxx.

References m_aComponentBitCounts, and m_aComponentTags.

Referenced by VclCanvasBitmap().

◆ setIndex()

sal_Bool SAL_CALL VclCanvasBitmap::setIndex ( const css::uno::Sequence< double > &  color,
sal_Bool  transparency,
::sal_Int32  nIndex 
)
overridevirtual

Member Data Documentation

◆ m_aAlpha

::Bitmap vcl::unotools::VclCanvasBitmap::m_aAlpha
private

Definition at line 40 of file canvasbitmap.hxx.

Referenced by getAlphaReadAccess(), and VclCanvasBitmap().

◆ m_aBitmap

::Bitmap vcl::unotools::VclCanvasBitmap::m_aBitmap
private

Definition at line 39 of file canvasbitmap.hxx.

Referenced by getBitmapReadAccess(), getScaledBitmap(), getSize(), and VclCanvasBitmap().

◆ m_aBmpEx

BitmapEx vcl::unotools::VclCanvasBitmap::m_aBmpEx
private

◆ m_aComponentBitCounts

css::uno::Sequence<sal_Int32> vcl::unotools::VclCanvasBitmap::m_aComponentBitCounts
private

Definition at line 46 of file canvasbitmap.hxx.

Referenced by getComponentBitCounts(), setComponentInfo(), and VclCanvasBitmap().

◆ m_aComponentTags

css::uno::Sequence<sal_Int8> vcl::unotools::VclCanvasBitmap::m_aComponentTags
private

◆ m_aLayout

css::rendering::IntegerBitmapLayout vcl::unotools::VclCanvasBitmap::m_aLayout
private

Definition at line 47 of file canvasbitmap.hxx.

Referenced by getMemoryLayout(), and VclCanvasBitmap().

◆ m_bPalette

bool vcl::unotools::VclCanvasBitmap::m_bPalette
private

◆ m_nAlphaIndex

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nAlphaIndex
private

◆ m_nBitsPerInputPixel

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nBitsPerInputPixel
private

◆ m_nBitsPerOutputPixel

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nBitsPerOutputPixel
private

◆ m_nBlueIndex

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nBlueIndex
private

◆ m_nGreenIndex

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nGreenIndex
private

◆ m_nIndexIndex

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nIndexIndex
private

◆ m_nRedIndex

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nRedIndex
private

◆ m_pAlphaAcc

Bitmap::ScopedInfoAccess vcl::unotools::VclCanvasBitmap::m_pAlphaAcc
private

Definition at line 42 of file canvasbitmap.hxx.

Referenced by getData(), getPixel(), and VclCanvasBitmap().

◆ m_pAlphaReadAcc

std::optional<Bitmap::ScopedReadAccess> vcl::unotools::VclCanvasBitmap::m_pAlphaReadAcc
private

Definition at line 44 of file canvasbitmap.hxx.

Referenced by getAlphaReadAccess().

◆ m_pBmpAcc

Bitmap::ScopedInfoAccess vcl::unotools::VclCanvasBitmap::m_pBmpAcc
private

◆ m_pBmpReadAcc

std::optional<Bitmap::ScopedReadAccess> vcl::unotools::VclCanvasBitmap::m_pBmpReadAcc
private

Definition at line 43 of file canvasbitmap.hxx.

Referenced by getBitmapReadAccess().


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