Re: Playing a metafile on top of another metafile -> Disappearing lines
- From: "Michael Phillips, Jr." <mphillips53@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 10:21:55 -0400
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"?
.
- References:
- Playing a metafile on top of another metafile -> Disappearing lines
- From: Ottar Holstad
- Playing a metafile on top of another metafile -> Disappearing lines
- Prev by Date: Writing a bitmap to file
- Next by Date: Re: Writing a bitmap to file
- Previous by thread: Re: Playing a metafile on top of another metafile -> Disappearing lines
- Next by thread: bitblt in a webpage
- Index(es):
Relevant Pages
|