LibreOffice Module vcl (master) 1
|
Classes | |
class | VclCanvasBitmap |
Functions | |
uno::Reference< rendering::XBitmap > | xBitmapFromBitmapEx (const ::BitmapEx &inputBitmap) |
Create an XBitmap from VCL BitmapEx. More... | |
::BitmapEx | bitmapExFromXBitmap (const uno::Reference< rendering::XIntegerReadOnlyBitmap > &xInputBitmap) |
geometry::RealSize2D | size2DFromSize (const Size &rSize) |
Size | sizeFromRealSize2D (const geometry::RealSize2D &rSize) |
::Size | sizeFromB2DSize (const basegfx::B2DVector &rVec) |
::Point | pointFromB2DPoint (const basegfx::B2DPoint &rPoint) |
::tools::Rectangle | rectangleFromB2DRectangle (const basegfx::B2DRange &rRect) |
Point | pointFromB2IPoint (const basegfx::B2IPoint &rPoint) |
basegfx::B2IPoint | b2IPointFromPoint (Point const &rPoint) |
tools::Rectangle | rectangleFromB2IRectangle (const basegfx::B2IRange &rRect) |
basegfx::B2IRectangle | b2IRectangleFromRectangle (tools::Rectangle const &rRect) |
basegfx::B2DSize | b2DSizeFromSize (const Size &rSize) |
basegfx::B2DVector | b2DVectorFromSize (const Size &rSize) |
basegfx::B2DPoint | b2DPointFromPoint (const ::Point &rPoint) |
basegfx::B2DRange | b2DRectangleFromRectangle (const ::tools::Rectangle &rRect) |
geometry::IntegerSize2D | integerSize2DFromSize (const Size &rSize) |
Size | sizeFromIntegerSize2D (const geometry::IntegerSize2D &rSize) |
Point | pointFromIntegerPoint2D (const geometry::IntegerPoint2D &rPoint) |
tools::Rectangle | rectangleFromIntegerRectangle2D (const geometry::IntegerRectangle2D &rRectangle) |
uno::Reference< rendering::XColorSpace > | createStandardColorSpace () |
Create a standard color space suitable for VCL RGB color. More... | |
uno::Sequence< double > | colorToStdColorSpaceSequence (const Color &rColor) |
Create a device-specific color sequence from VCL/Tools color. More... | |
Color | stdColorSpaceSequenceToColor (const uno::Sequence< double > &rColor) |
uno::Sequence< double > | colorToDoubleSequence (const Color &rColor, const uno::Reference< rendering::XColorSpace > &xColorSpace) |
Color | doubleSequenceToColor (const uno::Sequence< double > &rColor, const uno::Reference< rendering::XColorSpace > &xColorSpace) |
::BitmapEx VCL_DLLPUBLIC | bitmapExFromXBitmap (const css::uno::Reference< css::rendering::XIntegerReadOnlyBitmap > &xInputBitmap) |
Create a BitmapEx from an XBitmap. More... | |
css::uno::Sequence< double > VCL_DLLPUBLIC | colorToDoubleSequence (const Color &rColor, const css::uno::Reference< css::rendering::XColorSpace > &xColorSpace) |
Convert color to device color sequence. More... | |
Color VCL_DLLPUBLIC | stdColorSpaceSequenceToColor (const css::uno::Sequence< double > &rColor) |
Convert from standard device color space to VCL/Tools color. More... | |
Color VCL_DLLPUBLIC | doubleSequenceToColor (const css::uno::Sequence< double > &rColor, const css::uno::Reference< css::rendering::XColorSpace > &xColorSpace) |
Convert color to device color sequence. More... | |
sal_Int8 | toByteColor (double val) |
Convert [0,1] double value to [0,255] int. More... | |
double | toDoubleColor (sal_uInt8 val) |
Convert [0,255] int value to [0,1] double value. More... | |
Size VCL_DLLPUBLIC | sizeFromRealSize2D (const css::geometry::RealSize2D &) |
Size VCL_DLLPUBLIC | sizeFromIntegerSize2D (const css::geometry::IntegerSize2D &) |
Point VCL_DLLPUBLIC | pointFromIntegerPoint2D (const css::geometry::IntegerPoint2D &) |
tools::Rectangle VCL_DLLPUBLIC | rectangleFromIntegerRectangle2D (const css::geometry::IntegerRectangle2D &) |
basegfx::B2DPoint VCL_DLLPUBLIC | b2DPointFromPoint (const Point &) |
basegfx::B2DRange VCL_DLLPUBLIC | b2DRectangleFromRectangle (const tools::Rectangle &) |
basegfx::B2DPoint vcl::unotools::b2DPointFromPoint | ( | const ::Point & | rPoint | ) |
Definition at line 380 of file canvastools.cxx.
basegfx::B2DPoint VCL_DLLPUBLIC vcl::unotools::b2DPointFromPoint | ( | const Point & | ) |
basegfx::B2DRange vcl::unotools::b2DRectangleFromRectangle | ( | const ::tools::Rectangle & | rRect | ) |
Definition at line 386 of file canvastools.cxx.
Referenced by clipMetafileContentAgainstOwnRegions(), vcl::Region::Exclude(), vcl::PDFWriterImpl::intersectClipRegion(), vcl::PageSyncData::PlaySyncPageAct(), OutputDevice::TransformAndReduceBitmapExToTargetRange(), vcl::Region::Union(), and vcl::Region::XOr().
basegfx::B2DRange VCL_DLLPUBLIC vcl::unotools::b2DRectangleFromRectangle | ( | const tools::Rectangle & | ) |
VCL_DLLPUBLIC basegfx::B2DSize vcl::unotools::b2DSizeFromSize | ( | const Size & | rSize | ) |
Definition at line 370 of file canvastools.cxx.
References Size::Height(), and Size::Width().
VCL_DLLPUBLIC basegfx::B2DVector vcl::unotools::b2DVectorFromSize | ( | const Size & | rSize | ) |
Definition at line 375 of file canvastools.cxx.
References Size::Height(), and Size::Width().
basegfx::B2IPoint VCL_DLLPUBLIC vcl::unotools::b2IPointFromPoint | ( | Point const & | rPoint | ) |
Definition at line 345 of file canvastools.cxx.
References Point::X(), and Point::Y().
basegfx::B2IRectangle VCL_DLLPUBLIC vcl::unotools::b2IRectangleFromRectangle | ( | tools::Rectangle const & | rRect | ) |
Definition at line 358 of file canvastools.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::IsHeightEmpty(), tools::Rectangle::IsWidthEmpty(), tools::Rectangle::Left(), tools::Rectangle::Right(), and tools::Rectangle::Top().
::BitmapEx VCL_DLLPUBLIC vcl::unotools::bitmapExFromXBitmap | ( | const css::uno::Reference< css::rendering::XIntegerReadOnlyBitmap > & | xInputBitmap | ) |
Create a BitmapEx from an XBitmap.
::BitmapEx vcl::unotools::bitmapExFromXBitmap | ( | const uno::Reference< rendering::XIntegerReadOnlyBitmap > & | xInputBitmap | ) |
Definition at line 169 of file canvastools.cxx.
References Bitmap::AcquireWriteAccess(), ENSURE_OR_THROW, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::get(), vcl::unotools::VclCanvasBitmap::getBitmapEx(), Bitmap::GetGreyPalette(), i, vcl::N24_BPP, vcl::N8_BPP, SAL_INFO, BitmapPalette::SetEntryCount(), sizeFromIntegerSize2D(), and toByteColor().
Referenced by convertPrimitive2DSequenceToBitmapEx(), and vcl::bitmap::loadFromSvg().
css::uno::Sequence< double > VCL_DLLPUBLIC vcl::unotools::colorToDoubleSequence | ( | const Color & | rColor, |
const css::uno::Reference< css::rendering::XColorSpace > & | xColorSpace | ||
) |
uno::Sequence< double > vcl::unotools::colorToDoubleSequence | ( | const Color & | rColor, |
const uno::Reference< rendering::XColorSpace > & | xColorSpace | ||
) |
Definition at line 594 of file canvastools.cxx.
References aSeq, Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and toDoubleColor().
css::uno::Sequence< double > VCL_DLLPUBLIC vcl::unotools::colorToStdColorSpaceSequence | ( | const Color & | rColor | ) |
Create a device-specific color sequence from VCL/Tools color.
Note that this method assumes a color space equivalent to the one returned from createStandardColorSpace()
Definition at line 568 of file canvastools.cxx.
References Color::GetAlpha(), Color::GetBlue(), Color::GetGreen(), Color::GetRed(), and toDoubleColor().
css::uno::Reference< css::rendering::XColorSpace > VCL_DLLPUBLIC vcl::unotools::createStandardColorSpace | ( | ) |
Create a standard color space suitable for VCL RGB color.
Definition at line 563 of file canvastools.cxx.
Referenced by vcl::unotools::VclCanvasBitmap::getColorSpace().
Color VCL_DLLPUBLIC vcl::unotools::doubleSequenceToColor | ( | const css::uno::Sequence< double > & | rColor, |
const css::uno::Reference< css::rendering::XColorSpace > & | xColorSpace | ||
) |
Color vcl::unotools::doubleSequenceToColor | ( | const uno::Sequence< double > & | rColor, |
const uno::Reference< rendering::XColorSpace > & | xColorSpace | ||
) |
Definition at line 611 of file canvastools.cxx.
References ColorAlpha, and toByteColor().
css::geometry::IntegerSize2D VCL_DLLPUBLIC vcl::unotools::integerSize2DFromSize | ( | const Size & | rSize | ) |
Definition at line 398 of file canvastools.cxx.
References Size::Height(), and Size::Width().
Referenced by vcl::unotools::VclCanvasBitmap::getSize(), and GDIMetaFile::ImplPlayWithRenderer().
Point VCL_DLLPUBLIC vcl::unotools::pointFromB2DPoint | ( | const basegfx::B2DPoint & | rPoint | ) |
Definition at line 329 of file canvastools.cxx.
References basegfx::fround(), and pointFromB2IPoint().
Point VCL_DLLPUBLIC vcl::unotools::pointFromB2IPoint | ( | const basegfx::B2IPoint & | rPoint | ) |
Definition at line 339 of file canvastools.cxx.
References basegfx::Tuple2D< typename TYPE >::getX(), and basegfx::Tuple2D< typename TYPE >::getY().
Referenced by pointFromB2DPoint().
Point VCL_DLLPUBLIC vcl::unotools::pointFromIntegerPoint2D | ( | const css::geometry::IntegerPoint2D & | ) |
Point vcl::unotools::pointFromIntegerPoint2D | ( | const geometry::IntegerPoint2D & | rPoint | ) |
Definition at line 410 of file canvastools.cxx.
tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromB2DRectangle | ( | const basegfx::B2DRange & | rRect | ) |
Definition at line 334 of file canvastools.cxx.
References basegfx::fround(), and rectangleFromB2IRectangle().
tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromB2IRectangle | ( | const basegfx::B2IRange & | rRect | ) |
Definition at line 350 of file canvastools.cxx.
References basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), and basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY().
Referenced by rectangleFromB2DRectangle().
tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromIntegerRectangle2D | ( | const css::geometry::IntegerRectangle2D & | ) |
tools::Rectangle vcl::unotools::rectangleFromIntegerRectangle2D | ( | const geometry::IntegerRectangle2D & | rRectangle | ) |
Definition at line 416 of file canvastools.cxx.
Referenced by vcl::unotools::VclCanvasBitmap::getData().
css::geometry::RealSize2D VCL_DLLPUBLIC vcl::unotools::size2DFromSize | ( | const Size & | rSize | ) |
Definition at line 311 of file canvastools.cxx.
References Size::Height(), and Size::Width().
Size VCL_DLLPUBLIC vcl::unotools::sizeFromB2DSize | ( | const basegfx::B2DVector & | rVec | ) |
Definition at line 323 of file canvastools.cxx.
References FRound(), basegfx::Tuple2D< typename TYPE >::getX(), and basegfx::Tuple2D< typename TYPE >::getY().
Size VCL_DLLPUBLIC vcl::unotools::sizeFromIntegerSize2D | ( | const css::geometry::IntegerSize2D & | ) |
Size vcl::unotools::sizeFromIntegerSize2D | ( | const geometry::IntegerSize2D & | rSize | ) |
Definition at line 404 of file canvastools.cxx.
Referenced by bitmapExFromXBitmap().
Size VCL_DLLPUBLIC vcl::unotools::sizeFromRealSize2D | ( | const css::geometry::RealSize2D & | ) |
Size vcl::unotools::sizeFromRealSize2D | ( | const geometry::RealSize2D & | rSize | ) |
Definition at line 317 of file canvastools.cxx.
Referenced by vcl::unotools::VclCanvasBitmap::getScaledBitmap().
Color VCL_DLLPUBLIC vcl::unotools::stdColorSpaceSequenceToColor | ( | const css::uno::Sequence< double > & | rColor | ) |
Convert from standard device color space to VCL/Tools color.
Note that this method assumes a color space equivalent to the one returned from createStandardColorSpace()
Color vcl::unotools::stdColorSpaceSequenceToColor | ( | const uno::Sequence< double > & | rColor | ) |
Definition at line 579 of file canvastools.cxx.
References ENSURE_ARG_OR_THROW, Color::SetAlpha(), Color::SetBlue(), Color::SetGreen(), Color::SetRed(), and toByteColor().
|
inline |
Convert [0,1] double value to [0,255] int.
Definition at line 119 of file canvastools.hxx.
References basegfx::fround().
Referenced by bitmapExFromXBitmap(), vcl::unotools::VclCanvasBitmap::convertFromARGB(), vcl::unotools::VclCanvasBitmap::convertFromPARGB(), vcl::unotools::VclCanvasBitmap::convertFromRGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromPARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerFromRGB(), doubleSequenceToColor(), and stdColorSpaceSequenceToColor().
|
inline |
Convert [0,255] int value to [0,1] double value.
Definition at line 126 of file canvastools.hxx.
Referenced by colorToDoubleSequence(), colorToStdColorSpaceSequence(), vcl::unotools::VclCanvasBitmap::convertFromIntegerColorSpace(), vcl::unotools::VclCanvasBitmap::convertIntegerToARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerToPARGB(), vcl::unotools::VclCanvasBitmap::convertIntegerToRGB(), vcl::unotools::VclCanvasBitmap::convertToARGB(), vcl::unotools::VclCanvasBitmap::convertToPARGB(), and vcl::unotools::VclCanvasBitmap::convertToRGB().
css::uno::Reference< css::rendering::XBitmap > VCL_DLLPUBLIC vcl::unotools::xBitmapFromBitmapEx | ( | const ::BitmapEx & | inputBitmap | ) |
Create an XBitmap from VCL BitmapEx.
Definition at line 52 of file canvastools.cxx.
References SAL_INFO.