reportlab/graphics/renderbase.py
changeset 2544 a6b9aa99b3c3
parent 2401 cd68d7a84d05
child 2547 9d13685212f2
--- a/reportlab/graphics/renderbase.py	Tue Dec 06 18:36:58 2005 +0000
+++ b/reportlab/graphics/renderbase.py	Wed Dec 07 11:39:53 2005 +0000
@@ -164,6 +164,16 @@
             if not ocanvas: del onode._canvas
     return node
 
+def renderScaledDrawing(d):
+    renderScale = d.renderScale
+    if renderScale!=1.0:
+        d = d.copy()
+        d.width *= renderScale
+        d.height *= renderScale
+        d.scale(renderScale,renderScale)
+        d.renderScale = 1.0
+    return d
+
 class Renderer:
     """Virtual superclass for graphics renderers."""