Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing Images in VB6

Status
Not open for further replies.

mrrrl

MIS
Dec 26, 2001
179
US
I need import JPEG images, then resize them (from 1600 X 1200 to 800 X 600) and save them to another folder. This is for an interface between to different systems that both read/view JPEG images but in different sizes.

Any one have any ideas?

TIA
 

There are several 3rd party controls out there that will do this for you, but their prices are not for the timid. You can accomplish pretty much the same thing with the Wang/Kodak ImageEdit control but it will not let you save images with the jpeg or jpg extension but it will allow you to use jpeg compression (go figure? then rename the file). Most viewers will accept this file format and will display it for you. However you can also display jpegs on forms, in picture boxes and image boxes, and with that in mind you could use the savepicture function, but once again not in the jpeg format. However if you search the web (yahoo, google, planet-source-code.com) you will find enough info to create a program that will do what you want.

Good Luck

 
is there an IE control that will allow this...?

I know you can resize images in html code...

Also in word...

Is there not an Api call to do this task? Sometimes... the BASIC things in life are the best...
cheers.gif

or at least the most fun ;-)
-Josh Stribling
 

CubeE101,

When you resize images in HTML code you are not changing the origional aspect of the image. You are just expressing the area that it can be displayed in which is like using the Wang/Kodak ImageEdit control or any other imaging program and changing the zoom factor. Same thing for word. What mrrrl is wanting to do is change the origional to a new image with new width and height properties (that is if I did not understand them). Here is a test for you. Create a simple HTML file that displays a picture but with reduced dimentions. Display that page and right click on the image and select save as. Save it some place and then check it size to the origional. You will find that they are the same.

BTW: you should start your own thread.

Good Luck

 
Shame the search engine isn't back up yet - I posted a solution for something similar to this about a year or so ago...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top