Hi;
I asked:
Ok, I create an Image passing it a wmf file that is a placable wmf. It's
header has the values of:
bounding box: 06DF, F6F0, 080F, F788
twips/inch: 0048
decimal instead of hex from here down:
This gives us a size in device units of 304 x 144 and a physical size of
4.22" x 2.0". Note that as a metafile there is no dpi setting from this.
Here are the problems when I create a bmp from this metafile using
Image.Save()
2) It sets the size to 4.22" x 2.12". The width difference is correct but
the height is off by more than a fraction. My math may be off above but if
not, it is not getting the width correctly.
Question:
2) Is my math off or is there a bug in how it determines the width?
You said:
2) Image.Size determine the picture size
Yes Size does determine the image size. My question is why is that size
wrong when the wmf is converted into a bitmap?

Signature
thanks - dave
"Peter Huang" [MSFT] - 10 Nov 2005 10:16 GMT
Hi,
Currently I am researching the issue and we will reply here with more
information as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 11 Nov 2005 01:50 GMT
Hi
Based on my research, I did not find the known issue, can you send me your
reproduce code and the wmf you are using together with the detailed
reproduce sample for me to do further troubleshooting.
Thanks!
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 11 Nov 2005 01:51 GMT
Hi
BTW: You are reach me via removing the"online" from my email address.
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 13 Nov 2005 23:23 GMT
This works fine using the DrawImage(metafile) approach.

Signature
thanks - dave
> Hi
>
[quoted text clipped - 10 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 15 Nov 2005 06:27 GMT
Hi
You are welcomed!
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.