Ejemplo n.º 1
0
        // Render the description onto the given graphics at (0,0). Only draw the parts that lie within
        // the clip rect.
        public void RenderToGraphics(Graphics g, RectangleF clipRect)
        {
            IRenderer renderer = new GraphicsRenderer(g);

            replaceMultiplySign = true;
            Render(renderer, clipRect, 0, description.Length);
        }
Ejemplo n.º 2
0
        void IPrintableRectangle.Draw(Graphics g, float x, float y, int startLine, int countLines)
        {
            IRenderer renderer = new GraphicsRenderer(g);

            Matrix saveTransform = g.Transform;

            g.TranslateTransform(x, y);
            replaceMultiplySign = true;
            Render(renderer, new RectangleF(-100000, -100000, 200000, 200000), startLine, countLines);

            g.Transform = saveTransform;
        }