summaryrefslogtreecommitdiff
path: root/include/drawinglayer/converters.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/drawinglayer/converters.hxx')
-rw-r--r--include/drawinglayer/converters.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/drawinglayer/converters.hxx b/include/drawinglayer/converters.hxx
index 1fda7a2f8350..f85bbfdae6f5 100644
--- a/include/drawinglayer/converters.hxx
+++ b/include/drawinglayer/converters.hxx
@@ -24,6 +24,18 @@
namespace drawinglayer
{
+// Helper that just creates the AlphaMask for a given Seq of Primitives.
+// If only the mask is needed this can be significantly faster then
+// creating content & mask in a BitmapEx (since the creation uses
+// e.g. a unified color for gradients instead of having to fully paint
+// these)
+AlphaMask DRAWINGLAYER_DLLPUBLIC
+createAlphaMask(drawinglayer::primitive2d::Primitive2DContainer&& rSeq,
+ const geometry::ViewInformation2D& rViewInformation2D, sal_uInt32 nDiscreteWidth,
+ sal_uInt32 nDiscreteHeight, sal_uInt32 nMaxSquarePixels);
+
+// Helper for convertPrimitive2DContainerToBitmapEx below, but can be also used
+// directly
BitmapEx DRAWINGLAYER_DLLPUBLIC
convertToBitmapEx(drawinglayer::primitive2d::Primitive2DContainer&& rSeq,
const geometry::ViewInformation2D& rViewInformation2D, sal_uInt32 nDiscreteWidth,