LibreOffice Module vcl (master) 1
Classes | Functions
vcl::unotools Namespace Reference

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 &)
 

Function Documentation

◆ b2DPointFromPoint() [1/2]

basegfx::B2DPoint vcl::unotools::b2DPointFromPoint ( const ::Point rPoint)

Definition at line 380 of file canvastools.cxx.

◆ b2DPointFromPoint() [2/2]

basegfx::B2DPoint VCL_DLLPUBLIC vcl::unotools::b2DPointFromPoint ( const Point )

◆ b2DRectangleFromRectangle() [1/2]

basegfx::B2DRange vcl::unotools::b2DRectangleFromRectangle ( const ::tools::Rectangle rRect)

◆ b2DRectangleFromRectangle() [2/2]

basegfx::B2DRange VCL_DLLPUBLIC vcl::unotools::b2DRectangleFromRectangle ( const tools::Rectangle )

◆ b2DSizeFromSize()

VCL_DLLPUBLIC basegfx::B2DSize vcl::unotools::b2DSizeFromSize ( const Size rSize)

Definition at line 370 of file canvastools.cxx.

References Size::Height(), and Size::Width().

◆ b2DVectorFromSize()

VCL_DLLPUBLIC basegfx::B2DVector vcl::unotools::b2DVectorFromSize ( const Size rSize)

Definition at line 375 of file canvastools.cxx.

References Size::Height(), and Size::Width().

◆ b2IPointFromPoint()

basegfx::B2IPoint VCL_DLLPUBLIC vcl::unotools::b2IPointFromPoint ( Point const &  rPoint)

Definition at line 345 of file canvastools.cxx.

References Point::X(), and Point::Y().

◆ b2IRectangleFromRectangle()

basegfx::B2IRectangle VCL_DLLPUBLIC vcl::unotools::b2IRectangleFromRectangle ( tools::Rectangle const &  rRect)

◆ bitmapExFromXBitmap() [1/2]

::BitmapEx VCL_DLLPUBLIC vcl::unotools::bitmapExFromXBitmap ( const css::uno::Reference< css::rendering::XIntegerReadOnlyBitmap > &  xInputBitmap)

Create a BitmapEx from an XBitmap.

◆ bitmapExFromXBitmap() [2/2]

::BitmapEx vcl::unotools::bitmapExFromXBitmap ( const uno::Reference< rendering::XIntegerReadOnlyBitmap > &  xInputBitmap)

◆ colorToDoubleSequence() [1/2]

css::uno::Sequence< double > VCL_DLLPUBLIC vcl::unotools::colorToDoubleSequence ( const Color rColor,
const css::uno::Reference< css::rendering::XColorSpace > &  xColorSpace 
)

Convert color to device color sequence.

Parameters
rColorColor to convert
xColorSpaceColor space to convert into

◆ colorToDoubleSequence() [2/2]

uno::Sequence< double > vcl::unotools::colorToDoubleSequence ( const Color rColor,
const uno::Reference< rendering::XColorSpace > &  xColorSpace 
)

◆ colorToStdColorSpaceSequence()

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().

◆ createStandardColorSpace()

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().

◆ doubleSequenceToColor() [1/2]

Color VCL_DLLPUBLIC vcl::unotools::doubleSequenceToColor ( const css::uno::Sequence< double > &  rColor,
const css::uno::Reference< css::rendering::XColorSpace > &  xColorSpace 
)

Convert color to device color sequence.

Parameters
rColorColor sequence to convert from
xColorSpaceColor space to convert from

◆ doubleSequenceToColor() [2/2]

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().

◆ integerSize2DFromSize()

css::geometry::IntegerSize2D VCL_DLLPUBLIC vcl::unotools::integerSize2DFromSize ( const Size rSize)

◆ pointFromB2DPoint()

Point VCL_DLLPUBLIC vcl::unotools::pointFromB2DPoint ( const basegfx::B2DPoint rPoint)

Definition at line 329 of file canvastools.cxx.

References basegfx::fround(), and pointFromB2IPoint().

◆ pointFromB2IPoint()

Point VCL_DLLPUBLIC vcl::unotools::pointFromB2IPoint ( const basegfx::B2IPoint rPoint)

◆ pointFromIntegerPoint2D() [1/2]

Point VCL_DLLPUBLIC vcl::unotools::pointFromIntegerPoint2D ( const css::geometry::IntegerPoint2D &  )

◆ pointFromIntegerPoint2D() [2/2]

Point vcl::unotools::pointFromIntegerPoint2D ( const geometry::IntegerPoint2D &  rPoint)

Definition at line 410 of file canvastools.cxx.

◆ rectangleFromB2DRectangle()

tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromB2DRectangle ( const basegfx::B2DRange rRect)

Definition at line 334 of file canvastools.cxx.

References basegfx::fround(), and rectangleFromB2IRectangle().

◆ rectangleFromB2IRectangle()

tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromB2IRectangle ( const basegfx::B2IRange rRect)

◆ rectangleFromIntegerRectangle2D() [1/2]

tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromIntegerRectangle2D ( const css::geometry::IntegerRectangle2D &  )

◆ rectangleFromIntegerRectangle2D() [2/2]

tools::Rectangle vcl::unotools::rectangleFromIntegerRectangle2D ( const geometry::IntegerRectangle2D &  rRectangle)

Definition at line 416 of file canvastools.cxx.

Referenced by vcl::unotools::VclCanvasBitmap::getData().

◆ size2DFromSize()

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().

◆ sizeFromB2DSize()

Size VCL_DLLPUBLIC vcl::unotools::sizeFromB2DSize ( const basegfx::B2DVector rVec)

◆ sizeFromIntegerSize2D() [1/2]

Size VCL_DLLPUBLIC vcl::unotools::sizeFromIntegerSize2D ( const css::geometry::IntegerSize2D &  )

◆ sizeFromIntegerSize2D() [2/2]

Size vcl::unotools::sizeFromIntegerSize2D ( const geometry::IntegerSize2D &  rSize)

Definition at line 404 of file canvastools.cxx.

Referenced by bitmapExFromXBitmap().

◆ sizeFromRealSize2D() [1/2]

Size VCL_DLLPUBLIC vcl::unotools::sizeFromRealSize2D ( const css::geometry::RealSize2D &  )

◆ sizeFromRealSize2D() [2/2]

Size vcl::unotools::sizeFromRealSize2D ( const geometry::RealSize2D &  rSize)

Definition at line 317 of file canvastools.cxx.

Referenced by vcl::unotools::VclCanvasBitmap::getScaledBitmap().

◆ stdColorSpaceSequenceToColor() [1/2]

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()

◆ stdColorSpaceSequenceToColor() [2/2]

Color vcl::unotools::stdColorSpaceSequenceToColor ( const uno::Sequence< double > &  rColor)

◆ toByteColor()

sal_Int8 vcl::unotools::toByteColor ( double  val)
inline

◆ toDoubleColor()

double vcl::unotools::toDoubleColor ( sal_uInt8  val)
inline

◆ xBitmapFromBitmapEx()

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.