Solved

Image conversion

Posted on 2002-06-04
8
193 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 69

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

863 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

24 Experts available now in Live!

Get 1:1 Help Now