Solved

Image conversion

Posted on 2002-06-04
8
197 Views
Last Modified: 2012-05-05
Hi All,

   I wanna convert a bmp file to gif or jpg format in vb.

0
Comment
Question by:Tension
8 Comments
 

Expert Comment

by:HobbitHouse
ID: 7053505
do you mean that you want to embed you own code in vb to do this?  That's a REALLY bad idea.  Just find a 3rd party tool that will do the job and create a "shell" command to do it.
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7053512
You can use IPicture interface and its function SaveAsFile() to convert the file.

GOOD LUCK
0
 

Author Comment

by:Tension
ID: 7053518
Hi roshmon,
   Can you explain me in detail, the use of it in vb?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7053527
You can use IPicture interface and its function SaveAsFile() to convert the file.

GOOD LUCK
0
 

Author Comment

by:Tension
ID: 7053528
Hi roshmon,
   Can you explain me in detail, the use of it in vb?
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7053538
Wait, I will find...

You can also find this from MSDN by searching IPicture "Visual Basic"

Roshmon
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7053570
0
 

Accepted Solution

by:
kafzaal earned 100 total points
ID: 7075812
Hi

You can use imgedit control to do so

Load a picture to ImgEdit control

i.e.

ImgEdit1.FitTo 0
ImgEdit1.Image = "c:\abc.bmp"

then use this to convert it to jpg
ImagEdit1.SaveAs Destination[,FileType,PageType,CompressionType,CompressionInfo,SaveAtZoom]


all these types u can get from the Kodak Imagedit controls help file

regards
Kashif
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now