summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/glowprimitive2d.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-11-15 19:12:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-11-16 07:57:00 +0100
commit8011b16e05c97a92efee2debb23f5eae60f1236b (patch)
tree21e65803fa6f15e33e8bbbbbf701819fd0ad6171 /drawinglayer/source/primitive2d/glowprimitive2d.cxx
parent5b0a6621858b141022743dd8d500558895dedb1f (diff)
Use BitmapEx in BitmapPrimitive2D
we no longer need to wrap it in the framework XBitmap implemenation Change-Id: I0dc56ad63364e2c5a4cedd5e70d4ae7ea7eae563 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142746 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/primitive2d/glowprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/glowprimitive2d.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/drawinglayer/source/primitive2d/glowprimitive2d.cxx b/drawinglayer/source/primitive2d/glowprimitive2d.cxx
index 956a6f94eb82..47103ac9a011 100644
--- a/drawinglayer/source/primitive2d/glowprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/glowprimitive2d.cxx
@@ -225,11 +225,10 @@ void GlowPrimitive2D::create2DDecomposition(
// Independent from discrete sizes of glow alpha creation, always
// map and project glow result to geometry range extended by glow
// radius, but to the eventually clipped instance (ClippedRange)
- const primitive2d::Primitive2DReference xEmbedRefBitmap(
- new BitmapPrimitive2D(VCLUnoHelper::CreateVCLXBitmap(result),
- basegfx::utils::createScaleTranslateB2DHomMatrix(
- aClippedRange.getWidth(), aClippedRange.getHeight(),
- aClippedRange.getMinX(), aClippedRange.getMinY())));
+ const primitive2d::Primitive2DReference xEmbedRefBitmap(new BitmapPrimitive2D(
+ result, basegfx::utils::createScaleTranslateB2DHomMatrix(
+ aClippedRange.getWidth(), aClippedRange.getHeight(),
+ aClippedRange.getMinX(), aClippedRange.getMinY())));
rContainer = primitive2d::Primitive2DContainer{ xEmbedRefBitmap };
}