Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / November 2005

Tip: Looking for answers? Try searching our database.

wmf --> bmp image size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 09 Nov 2005 12:39 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.