Change resulution (DPI) of a device context

From: Martin Enke (martin-enke_at_online.de)
Date: 01/25/05


Date: Tue, 25 Jan 2005 23:08:32 +0100

Dear NG,

When creating a enhanced meta file the resolution is set to the resolution
of the device context.
Now, I have two ways to influence the resolution: Choosing a dc compatible
to the display which meens 96 DPI or choosing a dc compatible to a printer.
I need a printer compatible meta file, so it would be ok if there wheren't
some users who have no printer!

How can I create a dc and set its resolution?
Or is there a way to influence the resolution after creating a meta file?

Thanks for help

Martin



Relevant Pages

  • Re: Change resulution (DPI) of a device context
    ... > When creating a enhanced meta file the resolution is set to the resolution ... I have two ways to influence the resolution: ... The mapping mode of the device context defines the granularity of the data which is probably what you're after in this ...
    (microsoft.public.vb.winapi.graphics)
  • Change resulution (DPI) of a device context
    ... When creating a enhanced meta file the resolution is set to the resolution ... I have two ways to influence the resolution: ... to the display which meens 96 DPI or choosing a dc compatible to a printer. ...
    (microsoft.public.vb.general.discussion)
  • How to write and read a Meta file from the a stream.
    ... I tried with a Filestream, here to I had to save the file and reopen it. ... I need to write the meta file contents to a memory stream and on the fly read from the stream. ... Also if any one knows how to change the resolution of a new metafile that we are to create, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • How to write and read a Meta file from the a stream.
    ... I tried with a Filestream, here to I had to save the file and reopen it. ... I need to write the meta file contents to a memory stream and on the fly read from the stream. ... Also if any one knows how to change the resolution of a new metafile that we are to create, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • How to write and read a Meta file from the a stream.
    ... I tried with a Filestream, here to I had to save the file and reopen it. ... I need to write the meta file contents to a memory stream and on the fly read from the stream. ... Also if any one knows how to change the resolution of a new metafile that we are to create, ...
    (microsoft.public.dotnet.framework.windowsforms)