PDA

Click to See Complete Forum and Search --> : Save Jpeg file?


Dec 19th, 2000, 12:23 PM
Is ther anyone that are siting on a bit of code that are abel to save jpeg pictures? i have tried the jil10.dll but it dosnīt work god enugh it will be good if itīs only a .bas file!

parksie
Dec 19th, 2000, 12:34 PM
Try this: http://www.parksie.uklinux.net/savejpeg.zip

Dec 19th, 2000, 12:44 PM
This is the one i allready have ben using isnīt there any other way?

parksie
Dec 19th, 2000, 12:47 PM
What is it that the Intel one doesn't do that you need?

Dec 21st, 2000, 05:53 AM
It's too much code just for saving an jpeg!

I was proging in qbasic at first and then i found something to at least load a jpeg so it can't be inpossible to make a .bas that saves it?

sorry for my very bad spelling :)

parksie
Dec 21st, 2000, 12:15 PM
JPEG images are very hard to code - and the code used is very likely to be nowhere near as good as Intel's. Noone's going to care about it. But if it means that much to you, I'm sure it could be done. It's just that VB's memory handling skills aren't really up to it so you'd need lots of API calls for things that can be done in C with language statements.

http://www.planetsourcecode.com should have something there. If you look at http://www.sourceforge.net you might be lucky and get something in the VB section.

Dec 21st, 2000, 05:46 PM
I think i found something anyway so thanks!

well isn't it possible to make a dll in C and call it from vb somthing like this
sucsess = savejpeg picture1.hDC, "filename"

where savejpeg is
Declare Function SaveJpeg Lib "savejpg.dll" (ByVal hdc As Long, FileName as string) As Integer

or something like it!

parksie
Dec 21st, 2000, 05:49 PM
*scuse me while I bash head on table*

Sorry, I got mixed up with what you wanted. Yes, that's definitely possible, and probably very simple to do - I thought you wanted full VB code to create a JPEG :)

Dec 21st, 2000, 05:54 PM
well I just wanted to save the picture you know :)
with out that mouch code as it is in the Intel dll