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!
Printable View
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!
This is the one i allready have ben using isn´t there any other way?
What is it that the Intel one doesn't do that you need?
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 :)
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.
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!
*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 :)
well I just wanted to save the picture you know :)
with out that mouch code as it is in the Intel dll