Re: PrintDocument to a in memory Grapics object, How to?

From: Morten Wennevik (MortenWennevik_at_hotmail.com)
Date: 03/16/05


Date: Wed, 16 Mar 2005 16:39:32 +0100

Hi -,

You could create a Bitmap in memory, with the same size and resolution as
the page, and obtain a Graphics handle to that Bitmap.

On Wed, 16 Mar 2005 16:32:39 +0100, - <-@hotmail.com> wrote:

> Hi to All,
>
> I have a working printdocument, how can I use it to
> draw it's contents (pages) only to a inmemory graphics object
> and not to a printer or printpreview?
>
> thx for answers.
>
>
>

-- 
Happy Coding!
Morten Wennevik [C# MVP]


Relevant Pages

  • Re: Office 2001 --> office 2004
    ... "placeable header", usually a low-resolution bitmap. ... resolution, ...  the issues in graphics between 2001 and 2004 were never ... McGhie Information Engineering Pty Ltdhttp://jgmcghie.fastmail.com.au/ ...
    (microsoft.public.mac.office.word)
  • Re: Copying Format1bppIndexed Images
    ... Either the image is a NULL reference or the Graphics is a NULL reference. ... I suggest that you try to save the 1bpp image as a bitmap and then try to ... > GdipDrawImageRect(HandleRef graphics, HandleRef image, Int32 x, Int32 y, ... >> Assuming that your source image has a resolution of 204 DPI by 196 DPI, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: graphics & printing
    ... Second, if you draw your image to memory first then the resolution of the image is limited to the resolution of the destination memory image (Bitmap in this case, I assume). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: The story: Painting bitmap to screen is slow
    ... GDI bitmap pointing to the same area of memory. ... onto a Graphics device context. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: The story: Painting bitmap to screen is slow
    ... single bitmap to the screen. ... Perhaps the GDI bitblit operation, ... do with your configuration of Vista or graphics driver. ... refer to the same area of memory, so you can use either API to transfer to ...
    (microsoft.public.dotnet.framework.drawing)