svgmasknode.cxx (a275c134) | svgmasknode.cxx (49c58f9b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 252 unchanged lines hidden (view full) --- 261 } 262 263 // embed content to a ModifiedColorPrimitive2D since the definitions 264 // how content is used as alpha is special for Svg 265 { 266 const drawinglayer::primitive2d::Primitive2DReference xInverseMask( 267 new drawinglayer::primitive2d::ModifiedColorPrimitive2D( 268 aMaskTarget, | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 252 unchanged lines hidden (view full) --- 261 } 262 263 // embed content to a ModifiedColorPrimitive2D since the definitions 264 // how content is used as alpha is special for Svg 265 { 266 const drawinglayer::primitive2d::Primitive2DReference xInverseMask( 267 new drawinglayer::primitive2d::ModifiedColorPrimitive2D( 268 aMaskTarget, |
269 basegfx::BColorModifier( 270 basegfx::BColor(0.0, 0.0, 0.0), 271 0.5, 272 basegfx::BCOLORMODIFYMODE_LUMINANCE_TO_ALPHA))); | 269 basegfx::BColorModifierSharedPtr( 270 new basegfx::BColorModifier_luminance_to_alpha()))); |
273 274 aMaskTarget = drawinglayer::primitive2d::Primitive2DSequence(&xInverseMask, 1); 275 } 276 277 // prepare new content 278 drawinglayer::primitive2d::Primitive2DReference xNewContent( 279 new drawinglayer::primitive2d::TransparencePrimitive2D( 280 rTarget, --- 38 unchanged lines hidden --- | 271 272 aMaskTarget = drawinglayer::primitive2d::Primitive2DSequence(&xInverseMask, 1); 273 } 274 275 // prepare new content 276 drawinglayer::primitive2d::Primitive2DReference xNewContent( 277 new drawinglayer::primitive2d::TransparencePrimitive2D( 278 rTarget, --- 38 unchanged lines hidden --- |