Re: Playing a metafile on top of another metafile -> Disappearing lines

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



What is going on here? Shouldn't metafile-rendering be independant of DPI
and resolution?

Yes.

It looks like windows is "optimizing" these thin linse out of the
rendering. On the other hand, why would only the area falling outside the
screen resolution be "optimized"?

Your image will be clipped to "Clipping Rectangle" that is set by the device
context you are rendering to.

You may want to review this Microsoft KB Article that refers to nested
metafile rendering:
http://support.microsoft.com/kb/q107171/


"Ottar Holstad" <no@xxxxx> wrote in message
news:%23fdpRpSmGHA.2204@xxxxxxxxxxxxxxxxxxxxxxx
Hi! I'm using PlayEnhMetafile to play a metafile (tax-form as emf-file) on
top of another metafile (print-preview background).

The tax-form has a resolution of 793x1122 (WxH) and a DPI of 96.
The print-preview background is created by calling CreateEnhMetaFile with
the screen as the reference device context. The screen has a resolution of
1280x1024, and a DPI of 96, I think.

Towards the bottom of the resulting metafile thin lines used for borders
around input fields etc. are missing. They start to disappear at 1024 from
the top, which is the same as the screens vertical resolution. If I change
my screen resolution to 1280x720 and create the metafile again, the lines
are missing from 720 and down. Text appears as excpected.

If I call CreateEnhMetaFile with the the default printer as the reference
device context, this problem is solved, except that I run into other
problems with RTF-text. Also, I can't require every customer to have a
default printer installed, so this is not an option.

What is going on here? Shouldn't metafile-rendering be independant of DPI
and resolution? It looks like windows is "optimizing" these thin linse out
of the rendering. On the other hand, why would only the area falling
outside the screen resolution be "optimized"?



.



Relevant Pages

  • Programatically rendering & Printing Reporting Services Reports
    ... I'm rendering an RS report into an image programmatically before printing ... screen resolution of the server that my app is running on. ... Surely a server process such as this won't be dependent upon screen ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Automatic updates changing screen resolution
    ... And it won't let me reset it. ... 'Dell notebook, Vista, and Screen Resolution | Ask Metafilter' ... The actual culprit is TMM, Vista's process that looks for multiple ... Uncheck the box under Settings at "Run in 640 X 480 screen resolution. ...
    (microsoft.public.windows.vista.general)
  • Re: How to change gdm screen resolution?
    ... My default screen resolution is 1400x1050, and in gdm greeting screen, ... How to change the gdm settings to the LCD native resolution? ... Ubuntu is different from other distributions, ...
    (Ubuntu)
  • Re: Maximizing Resolution
    ... >> Steve Easton ... I do not want to change the viewers resolution on ... >> must want my site to fill the width of their viewing area that they are ... I do not want to change their screen resolution each ...
    (microsoft.public.frontpage.programming)
  • Scaling vs Font setting
    ... I had a nice scaling routine, used to convert a dialog from ... it's design time resolution to the current screen resolution, ... which get the current screen resolution. ...
    (microsoft.public.vc.mfc)