Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2008, 12:55 PM
Authorized User
 
Join Date: Sep 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do i load a wmf image

in my vb6 program, i load hundreds of windows metafile format (.wmf) images.

jpeg does not give me the resolution i need and bitmap images are to big, wmf is just right.

when i load the wmf images into a vb-2008 form, they do not have near enough resolution.

the original images are 700 pixels wide and 400 pixels high .. (about) 1.5 inches by 3/4 inches

the vb6 picture box is (about) .. 4 inches wide by 2.5 inches high

the vb-2008 picture box is (about) 5 by 3 .. i did preserve aspect ratios

in both cases i used the (stretch) property of the picture box.

i used the following vb-2008 code to load a map.

dim mapx as new drawing.bitmap ("c:\dirx\mapx")
picturebox . image = mapx

??? why are the images blurry in vb-2008 ???

??? is there different code i should use to load a wmf image ???

thanks

jerry gentry .. wa0h
__________________
jerry gentry .. i am not retired .. but after 47 years of computer programming .. i got so old that nobody will hire me anymore.





Similar Threads
Thread Thread Starter Forum Replies Last Post
load a image from database pedrocosta24306 BOOK: Access 2003 VBA Programmer's Reference 0 January 5th, 2007 11:35 PM
how to load an image from servlet austinf Servlets 0 June 16th, 2006 02:00 AM
Load Image from file to TPaintBox sencee C++ Programming 0 April 7th, 2005 06:58 AM
Load image from URL JonnyRPI ASP.NET 1.0 and 1.1 Basics 0 June 9th, 2003 06:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.