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
This commit is contained in:
Oliver Bolte
2007-01-22 10:50:21 +00:00
parent ea7170de78
commit 11077ad85b

View File

@@ -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,