diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-01-22 10:50:21 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-01-22 10:50:21 +0000 |
commit | 11077ad85bdafadbcbcb6fe8921136998aa7b687 (patch) | |
tree | fa9d68b67b87fb763f39f68378eb7c7276a9511c /cppcanvas | |
parent | ea7170de781832309decdff07b72ef84ba1533e6 (diff) |
INTEGRATION: CWS thbpp6 (1.11.6); FILE MERGED
2006/12/21 17:20:53 thb 1.11.6.1: #121806# Now keeping full precision of the mtf logic coordinates across mtf->XCanvas conversion
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/mtftools.cxx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index 1ff0a6aaeda0..f4d18e15564d 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -4,9 +4,9 @@ * * $RCSfile: mtftools.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: vg $ $Date: 2006-11-01 17:48:05 $ + * last change: $Author: obo $ $Date: 2007-01-22 11:50:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -122,6 +122,23 @@ namespace cppcanvas return o_rMatrix; } + ::basegfx::B2DHomMatrix& calcLogic2PixelAffineTransform( ::basegfx::B2DHomMatrix& o_rMatrix, + const VirtualDevice& rVDev ) + { + // retrieves scale + calcLogic2PixelLinearTransform(o_rMatrix, rVDev); + + // translate according to curr map mode/pref map mode offset + const ::Point aEmptyPoint; + const ::Point& rTranslatedPoint( + rVDev.LogicToPixel( aEmptyPoint )); + + o_rMatrix.translate(rTranslatedPoint.X(), + rTranslatedPoint.Y()); + + return o_rMatrix; + } + bool modifyClip( rendering::RenderState& o_rRenderState, const struct ::cppcanvas::internal::OutDevState& rOutdevState, const CanvasSharedPtr& rCanvas, |