outdev6.cxx (b2577150) outdev6.cxx (4aeb9d34)
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

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

297 // get the polygon in device coordinates
298 basegfx::B2DPolyPolygon aB2DPolyPolygon( rPolyPoly.getB2DPolyPolygon() );
299 const ::basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation();
300 aB2DPolyPolygon.transform( aTransform );
301
302 const double fTransparency = 0.01 * nTransparencePercent;
303 if( mbFillColor )
304 {
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

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

297 // get the polygon in device coordinates
298 basegfx::B2DPolyPolygon aB2DPolyPolygon( rPolyPoly.getB2DPolyPolygon() );
299 const ::basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation();
300 aB2DPolyPolygon.transform( aTransform );
301
302 const double fTransparency = 0.01 * nTransparencePercent;
303 if( mbFillColor )
304 {
305 // draw the transparent polygon
306 // NOTE: filled polygons are assumed to be drawn as if they were always closed
307 bDrawn = mpGraphics->DrawPolyPolygon( aB2DPolyPolygon, fTransparency, this );
305 // #121591#
306 // CAUTION: Only non printing (pixel-renderer) VCL commands from OutputDevices
307 // should be used when printing. Normally this is avoided by the printer being
308 // non-AAed and thus e.g. on WIN GdiPlus calls are not used. It may be necessary
309 // to add (OUTDEV_PRINTER != meOutDevType) to the entering if statement, thus
310 // using the fallbacl some lines below (which is not very good, though). For
311 // now, WinSalGraphics::drawPolyPolygon will detect printer usage and correct
312 // the wrong mapping (see there for details)
313 bDrawn = mpGraphics->DrawPolyPolygon( aB2DPolyPolygon, fTransparency, this );
308 }
309
310 if( mbLineColor )
311 {
312 // disable the fill color for now
313 mpGraphics->SetFillColor();
314 // draw the border line
315 const basegfx::B2DVector aLineWidths( 1, 1 );

--- 963 unchanged lines hidden ---
314 }
315
316 if( mbLineColor )
317 {
318 // disable the fill color for now
319 mpGraphics->SetFillColor();
320 // draw the border line
321 const basegfx::B2DVector aLineWidths( 1, 1 );

--- 963 unchanged lines hidden ---