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::B2DVector b2DSizeFromSize (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::B2DVector VCL_DLLPUBLIC b2DSizeFromSize (const Size &)
 
basegfx::B2DPoint VCL_DLLPUBLIC b2DPointFromPoint (const Point &)
 
basegfx::B2DRange VCL_DLLPUBLIC b2DRectangleFromRectangle (const tools::Rectangle &)
 
basegfx::B2IPoint VCL_DLLPUBLIC b2IPointFromPoint (const Point &)
 
basegfx::B2IRectangle VCL_DLLPUBLIC b2IRectangleFromRectangle (const tools::Rectangle &)
 

Function Documentation

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

Definition at line 377 of file canvastools.cxx.

basegfx::B2DRange VCL_DLLPUBLIC vcl::unotools::b2DRectangleFromRectangle ( const tools::Rectangle )
basegfx::B2DRange vcl::unotools::b2DRectangleFromRectangle ( const ::tools::Rectangle rRect)
basegfx::B2DVector VCL_DLLPUBLIC vcl::unotools::b2DSizeFromSize ( const Size )
basegfx::B2DVector vcl::unotools::b2DSizeFromSize ( const ::Size rSize)

Definition at line 371 of file canvastools.cxx.

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

Definition at line 346 of file canvastools.cxx.

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

basegfx::B2IRectangle VCL_DLLPUBLIC vcl::unotools::b2IRectangleFromRectangle ( const tools::Rectangle )
basegfx::B2IRectangle vcl::unotools::b2IRectangleFromRectangle ( tools::Rectangle const &  rRect)
::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)
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
uno::Sequence< double > vcl::unotools::colorToDoubleSequence ( const Color rColor,
const uno::Reference< rendering::XColorSpace > &  xColorSpace 
)
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 565 of file canvastools.cxx.

References Color::GetBlue(), Color::GetGreen(), Color::GetRed(), Color::GetTransparency(), 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 560 of file canvastools.cxx.

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
Color vcl::unotools::doubleSequenceToColor ( const uno::Sequence< double > &  rColor,
const uno::Reference< rendering::XColorSpace > &  xColorSpace 
)

Definition at line 610 of file canvastools.cxx.

References toByteColor().

css::geometry::IntegerSize2D VCL_DLLPUBLIC vcl::unotools::integerSize2DFromSize ( const Size rSize)
Point VCL_DLLPUBLIC vcl::unotools::pointFromB2DPoint ( const basegfx::B2DPoint rPoint)

Definition at line 330 of file canvastools.cxx.

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

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

Definition at line 340 of file canvastools.cxx.

References basegfx::B2ITuple::getX(), and basegfx::B2ITuple::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 407 of file canvastools.cxx.

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

Definition at line 335 of file canvastools.cxx.

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

tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromB2IRectangle ( const basegfx::B2IRange rRect)
tools::Rectangle VCL_DLLPUBLIC vcl::unotools::rectangleFromIntegerRectangle2D ( const css::geometry::IntegerRectangle2D &  )
tools::Rectangle vcl::unotools::rectangleFromIntegerRectangle2D ( const geometry::IntegerRectangle2D &  rRectangle)

Definition at line 413 of file canvastools.cxx.

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

css::geometry::RealSize2D VCL_DLLPUBLIC vcl::unotools::size2DFromSize ( const Size rSize)

Definition at line 312 of file canvastools.cxx.

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

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

Definition at line 324 of file canvastools.cxx.

References FRound(), basegfx::B2DTuple::getX(), and basegfx::B2DTuple::getY().

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

Definition at line 401 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 318 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 580 of file canvastools.cxx.

References ENSURE_ARG_OR_THROW, Color::SetRed(), and toByteColor().

sal_Int8 vcl::unotools::toByteColor ( double  val)
inline
double vcl::unotools::toDoubleColor ( sal_uInt8  val)
inline
css::uno::Reference< css::rendering::XBitmap > VCL_DLLPUBLIC vcl::unotools::xBitmapFromBitmapEx ( const ::BitmapEx inputBitmap)

Create an XBitmap from VCL BitmapEx.

Definition at line 53 of file canvastools.cxx.

References SAL_INFO.