Re: Printing of shapes in GDI+

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 07/20/04


Date: Tue, 20 Jul 2004 10:38:02 +0200

Probably your easiest method will be to do all of your drawing, whether on
screen or on the printer, using a real-world measurement such as Inches,
Points or even Display. That way you don't have to worry about converting
from screen to printer resolutions.

-- 
Bob Powell [MVP]
Visual C#, System.Drawing
The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
"Pravin" <pr_avin@rediffmail.com> wrote in message
news:%23cqIOfhbEHA.3420@TK2MSFTNGP12.phx.gbl...
> I am drawing some shapes on the scrollable panel using GDI+. The panel may
> grow vertically or horizontally according to the shape positions. I have
to
> print these drawings on the panel.
>
> I tried capturing the screen shot of the panel but it working only for the
> visible area (won't cover the scrolling region).
>
> I tried a different approach; redraw the shapes by transforming the panel
> coordinates to the printing page co-ordinate. It is working for the
multiple
> page but transformation points are not giving correct value in the case of
> curve.
>
>
>
> Is there any easy way to achieve this task?
>
>
>


Relevant Pages

  • Re: Drawstring too slow!
    ... part of your control. ... All you ever wanted to know about ListView custom drawing is in Well Formed. ... Answer those GDI+ questions with the GDI+ FAQ ... I draw lots of strings in a panel window, ...
    (microsoft.public.dotnet.framework.drawing)
  • Printing of shapes in GDI+
    ... I am drawing some shapes on the scrollable panel using GDI+. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: OnPaint Function Issue
    ... I assume that by double-buffering that you mean using the GDI type Windows ... API functions like BitBlt where all drawing is done to a off sreen memory ... As far as I am aware there are no memory device contexts or bitblitting ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: The story: Painting bitmap to screen is slow
    ... The general "trick" behind great GDI+ performance is to do all drawing ... single bitmap to the screen. ... I heard Microsoft broke GDI acceleration for some operations in Vista. ... your configuration of Vista or graphics driver. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: GDI+ Performance Question
    ... what is this Canvas object that you are using for drawing? ... I've been reading alot about how GDI+ does not ... The rendering algorithm is pretty sound, it'll only render the parts of the score that need to be. ... For performance reasons, I'm drawing to a bitmap and during scrolling, I'm actually only rendering parts of the bitmap, in order to keep performance under control, but I don't like that approach. ...
    (microsoft.public.dotnet.framework.drawing)