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

#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)
 
virtual ~VclCanvasBitmap () override
 

Private Attributes

BitmapEx const m_aBmpEx
 
::Bitmap m_aBitmap
 
::Bitmap m_aAlpha
 
Bitmap::ScopedReadAccess m_pBmpAcc
 
Bitmap::ScopedReadAccess m_pAlphaAcc
 
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
 
sal_Int8 m_nEndianness
 
bool m_bPalette
 

Detailed Description

Definition at line 34 of file canvasbitmap.hxx.

Constructor & Destructor Documentation

VclCanvasBitmap::~VclCanvasBitmap ( )
overrideprivatevirtual

Definition at line 395 of file canvasbitmap.cxx.

VclCanvasBitmap::VclCanvasBitmap ( const BitmapEx rBitmap)
explicit

Member Function Documentation

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 708 of file canvasbitmap.cxx.

References convertToARGB().

uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual
uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromIntegerColorSpace ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor,
const css::uno::Reference< css::rendering::XColorSpace > &  targetColorSpace 
)
overridevirtual
uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromPARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual
uno::Sequence< double > SAL_CALL VclCanvasBitmap::convertFromRGB ( const css::uno::Sequence< css::rendering::RGBColor > &  rgbColor)
overridevirtual
uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertIntegerFromARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual
uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertIntegerFromPARGB ( const css::uno::Sequence< css::rendering::ARGBColor > &  rgbColor)
overridevirtual
uno::Sequence<::sal_Int8 > SAL_CALL VclCanvasBitmap::convertIntegerFromRGB ( const css::uno::Sequence< css::rendering::RGBColor > &  rgbColor)
overridevirtual
uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertIntegerToARGB ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor)
overridevirtual
uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertIntegerToPARGB ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor)
overridevirtual
uno::Sequence< rendering::RGBColor > SAL_CALL VclCanvasBitmap::convertIntegerToRGB ( const css::uno::Sequence< ::sal_Int8 > &  deviceColor)
overridevirtual
uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertToARGB ( const css::uno::Sequence< double > &  deviceColor)
overridevirtual
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 1077 of file canvasbitmap.cxx.

References convertIntegerToARGB().

uno::Sequence< rendering::ARGBColor > SAL_CALL VclCanvasBitmap::convertToPARGB ( const css::uno::Sequence< double > &  deviceColor)
overridevirtual
uno::Sequence< rendering::RGBColor > SAL_CALL VclCanvasBitmap::convertToRGB ( const css::uno::Sequence< double > &  deviceColor)
overridevirtual
const BitmapEx& vcl::unotools::VclCanvasBitmap::getBitmapEx ( ) const
inline

Retrieve contained bitmap. Call me with locked Solar mutex!

Definition at line 114 of file canvasbitmap.hxx.

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

sal_Int32 SAL_CALL VclCanvasBitmap::getBitsPerPixel ( )
override

Definition at line 995 of file canvasbitmap.cxx.

References m_nBitsPerOutputPixel.

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

Definition at line 680 of file canvasbitmap.cxx.

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

Definition at line 1001 of file canvasbitmap.cxx.

References m_aComponentBitCounts.

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

Definition at line 692 of file canvasbitmap.cxx.

References m_aComponentTags.

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

Definition at line 1007 of file canvasbitmap.cxx.

References m_nEndianness.

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

Definition at line 605 of file canvasbitmap.cxx.

References m_aLayout, and m_bPalette.

Referenced by getData(), and getPixel().

sal_Int32 SAL_CALL VclCanvasBitmap::getNumberOfEntries ( )
overridevirtual
uno::Reference< rendering::XBitmapPalette > VclCanvasBitmap::getPalette ( )
Exceptions
css::uno::RuntimeException

Definition at line 594 of file canvasbitmap.cxx.

References m_bPalette.

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

Definition at line 703 of file canvasbitmap.cxx.

sal_Int8 SAL_CALL VclCanvasBitmap::getRenderingIntent ( )
override

Definition at line 698 of file canvasbitmap.cxx.

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

Definition at line 687 of file canvasbitmap.cxx.

sal_Bool SAL_CALL VclCanvasBitmap::hasAlpha ( )
overridevirtual

Definition at line 406 of file canvasbitmap.cxx.

References BitmapEx::IsTransparent(), and m_aBmpEx.

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

Definition at line 58 of file canvasbitmap.cxx.

References m_aComponentBitCounts, and m_aComponentTags.

Referenced by VclCanvasBitmap().

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

Member Data Documentation

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

Definition at line 42 of file canvasbitmap.hxx.

Referenced by VclCanvasBitmap().

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

Definition at line 41 of file canvasbitmap.hxx.

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

BitmapEx const vcl::unotools::VclCanvasBitmap::m_aBmpEx
private
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().

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

Definition at line 47 of file canvasbitmap.hxx.

Referenced by getMemoryLayout(), and VclCanvasBitmap().

bool vcl::unotools::VclCanvasBitmap::m_bPalette
private
sal_Int32 vcl::unotools::VclCanvasBitmap::m_nAlphaIndex
private
sal_Int32 vcl::unotools::VclCanvasBitmap::m_nBitsPerInputPixel
private
sal_Int32 vcl::unotools::VclCanvasBitmap::m_nBitsPerOutputPixel
private
sal_Int32 vcl::unotools::VclCanvasBitmap::m_nBlueIndex
private
sal_Int8 vcl::unotools::VclCanvasBitmap::m_nEndianness
private

Definition at line 55 of file canvasbitmap.hxx.

Referenced by getEndianness(), and VclCanvasBitmap().

sal_Int32 vcl::unotools::VclCanvasBitmap::m_nGreenIndex
private
sal_Int32 vcl::unotools::VclCanvasBitmap::m_nIndexIndex
private
sal_Int32 vcl::unotools::VclCanvasBitmap::m_nRedIndex
private
Bitmap::ScopedReadAccess vcl::unotools::VclCanvasBitmap::m_pAlphaAcc
private

Definition at line 44 of file canvasbitmap.hxx.

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

Bitmap::ScopedReadAccess vcl::unotools::VclCanvasBitmap::m_pBmpAcc
private

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