|
-
Oct 9th, 2002, 05:51 PM
#1
Thread Starter
Hyperactive Member
How do I go BMP --> JPG In VB Code Only?
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Oct 9th, 2002, 06:17 PM
#2
Originally posted by Q_Me
How do I go BMP --> JPG In VB Code Only?
Well?
Well What?
What does "go BMP" mean?
A little less "cute" and a little more "detail" would help.
-
Oct 9th, 2002, 08:35 PM
#3
It's pretty obvious what he asked for...
He wants to convert BMP pictures to JPEG pictures...
The anser is (from what I know), NO... VB saves only in BMP format...
The only way I know to do it, is if you find a DLL that you include in your program that does it for you...
But if you find a way... please let me know... i'm interested in something like that also...
-
Oct 9th, 2002, 08:43 PM
#4
I think you want to look for the Intel JPEG library.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 9th, 2002, 08:50 PM
#5
Member
....which unfortunately has been stuffed together into IPP by Intel. You can still find IJL 1.1 on vbAccelerator.
Sunny
* No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced.
-
Oct 9th, 2002, 10:01 PM
#6
So Unbanned
Originally posted by Hack
Well What?
What does "go BMP" mean?
A little less "cute" and a little more "detail" would help.
What are you smoking?
I want some.
-
Oct 9th, 2002, 10:26 PM
#7
-
Oct 9th, 2002, 10:55 PM
#8
Thread Starter
Hyperactive Member
Convert BMP to JPG using VB code is what i'm asking for.
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Oct 9th, 2002, 11:03 PM
#9
Member
And the answer we gave is, "No". Its not possible in plain VB code.
You can get the JPEG standards and try and code it yourself, but if that was even remotely possible in VB it would've already been done, and there would be no need for all these 3rd party DLLs to be written.
Sunny
* No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced.
-
Oct 10th, 2002, 12:07 AM
#10
Hyperactive Member
Hi,
I think u didn't search on the forum about this. There are some threads available on this subject ,
Please first go through those ,
To help you I have some useful threads
1) http://www.vbaccelerator.com/codelib/gfx/vbjpeg.htm
2) http://www.vbforums.com/showthread.p...ht=BMP+TO+JPEG
Cheers
Gary
-
Oct 10th, 2002, 01:16 AM
#11
PowerPoster
http://haztek.no-ip.com/files/bmp2jpg.zip has a dll file and a project you can use to learn how to do it. I don't know if it's the Intel jpeg file, but it's what I use for JPEGs.
-
Oct 10th, 2002, 02:29 AM
#12
I don't think it is impossible in VB without using an external dll, but it is an enormous amount of work. You would have to dig deep into the JPEG file format. And when you finally succeed, you have to pay intel for using the JPEG format in your program. They copyrighted it.
-
Oct 10th, 2002, 02:52 AM
#13
So Unbanned
www.wotsit.org
They document the jpeg compression.
Have fun.
-
Oct 10th, 2002, 03:34 AM
#14
Yes, that is a great site for file formats. The document on the JPEG file format I found was 186 pages.
I also found the source code (c++) for a dll (cxImage) that is capable to convert to JPEG.
The JPEG part of it is 59 files with source code.
Like I said, it is an enormous amount of work.
-
Oct 10th, 2002, 04:36 AM
#15
Frenzied Member
In VB:
Shell Execute MSPaint
Send Keys Alt F Open
Send Keys "Your file.BMP"
Send Keys Alt F SaveAs
Send Keys "Your file.JPG"
Send Keys Alt F X
-
Oct 10th, 2002, 04:50 AM
#16
I don't think he wants to use MSPaint. He doesn't even want to use an external dll.
-
Oct 10th, 2002, 05:06 AM
#17
Frenzied Member
Actually, quite technically, you can write a conversion app in VB...
but heres the problem, you have to learn both the binary
patterns of the BMP format and the JPG format...and just directly
convert the binary...now, the question is how BAD do you want
the conversion?
-
Oct 10th, 2002, 10:06 AM
#18
Thread Starter
Hyperactive Member
The bmp2jpg.dll works fine for me, thanx MidgetsBro
53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.

-
Oct 10th, 2002, 10:51 AM
#19
Let me in ..
OR YOU CAN USE KODAK IMAGE EDIT CONTROL WHICH COMES WITH VB6.
Option Explicit
Private Sub Form_Click()
With ImgEdit1
.SaveAs "c:\t.jpg", 3, , , , False
End With
End Sub
Private Sub Form_Load()
With ImgEdit1
.Image = "C:\WINNT\ferrari.bmp"
.Display
.Refresh
End With
End Sub
PASTE THIS CODE ON YOUR FORM. IN FORM LOAD SPECIFY A VALID BMP IMAGE IN THE .IMAGE PROPERTY. AND WHEN YOU CLICK ON THE FORM IT WILL SAVE IT AS T.JPG ON YOUR C DRIVE.
AT LEAST YOU WILL NOT BE DEPENDENT ON A DLL FOR WHICH YOU DO NOT HAVE THE SOURCE CODE. AND IF SOMETHING GOES WRONG, THERE IS HARDLY ANYTHING YOU CAN DO !!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|