converters.cxx (7eeb9cee) converters.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

--- 106 unchanged lines hidden (view full) ---

115#endif
116 // prepare for mask creation
117 maContent.SetMapMode(aMapModePixel);
118
119 // set alpha to all white (fully transparent)
120 maContent.Erase();
121
122 // embed primitives to paint them black
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

--- 106 unchanged lines hidden (view full) ---

115#endif
116 // prepare for mask creation
117 maContent.SetMapMode(aMapModePixel);
118
119 // set alpha to all white (fully transparent)
120 maContent.Erase();
121
122 // embed primitives to paint them black
123 static basegfx::BColorModifyMode aMode = basegfx::BCOLORMODIFYMODE_REPLACE;
124 const primitive2d::Primitive2DReference xRef(
125 new primitive2d::ModifiedColorPrimitive2D(
126 aSequence,
123 const primitive2d::Primitive2DReference xRef(
124 new primitive2d::ModifiedColorPrimitive2D(
125 aSequence,
127 basegfx::BColorModifier(
128 basegfx::BColor(0.0, 0.0, 0.0),
129 0.5,
130 aMode)));
126 basegfx::BColorModifierSharedPtr(
127 new basegfx::BColorModifier_replace(
128 basegfx::BColor(0.0, 0.0, 0.0)))));
131 const primitive2d::Primitive2DSequence xSeq(&xRef, 1);
132
133 // render
134 pContentProcessor->process(xSeq);
135 delete pContentProcessor;
136
137 // get alpha cahannel from vdev
138 maContent.EnableMapMode(false);

--- 31 unchanged lines hidden ---
129 const primitive2d::Primitive2DSequence xSeq(&xRef, 1);
130
131 // render
132 pContentProcessor->process(xSeq);
133 delete pContentProcessor;
134
135 // get alpha cahannel from vdev
136 maContent.EnableMapMode(false);

--- 31 unchanged lines hidden ---