Solved

Image conversion

Posted on 2002-06-04
8
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

710 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