Page 2 of 5
Re: New Image plugin available for beta-testing
Posted: Thu Jan 15, 2004 7:02 am
by PB
> I'm not going to argue here about the GIF/LZW issue
Don't worry about it: the GIF license/patent expired on 20 June 2003 and
is now completely Public Domain (
http://www.kyz.uklinux.net/giflzw.php).

Re: New Image plugin available for beta-testing
Posted: Thu Jan 15, 2004 12:36 pm
by Danilo
Not in all countries, so you cant say it generally in an international
forum.
You can use the above procedures anyway because it does not
contain an LZW decoder, only a call to Windows API.
Its not the file format that is/was protected, its the LZW algorithm
for decoding and encoding. If you dont have this de-/encoder
in your source, you are on the safe side anyway.
If somebody wants to put you before a court of law, you can
show your sources to the court and they can see the algorithm
in question isnt used in your sources.
Posted: Fri Feb 27, 2004 2:16 pm
by LCD
El_Choni wrote:The plugin works here. Could you please post the image/s you can´t load? (and specify if you use LoadImage(), CatchImage() or what). Thanks,
I'm back now...
To your question:
All JPG's/GIF's did not load, even if they previously worked well. LoadImage() produces a zero result. It was working okay with previous version of my program, but the source grown up to circa 400 Kb, and then it suddenly stopped to work without any change in the loader code.
@Danielo, your source works, but it produces a black line at the top of the image, so I changed
Code: Select all
Pic\Render(hDC,0,PicHeight,PicWidth,-PicHeight,0,0,Width,Height,0)
to
Code: Select all
Pic\Render(hDC,0,PicHeight,PicWidth,-PicHeight-1,0,0,Width,Height,0)
Now it works better.
Posted: Fri Feb 27, 2004 3:10 pm
by El_Choni
Well, I only can say that it works here. I you have the latest version of the plugin (2.0) and still doesn't work, use Danilo's code (it does quite the same thing as the plugin).
Unless you want to send me the failing code, so I can try it here.
Posted: Tue Mar 02, 2004 1:02 pm
by coma
El_Choni :
The plugin works here. Could you please post the image/s you can´t load? (and specify if you use LoadImage(), CatchImage() or what).
is it possible to use CatchImage with your plugin ?
danilo:
can't we use png files with your code ?
Posted: Tue Mar 02, 2004 7:24 pm
by El_Choni
is it possible to use CatchImage with your plugin ?
Yes.
Posted: Tue Mar 02, 2004 7:46 pm
by coma
only with bmp files ?
Posted: Tue Mar 02, 2004 9:46 pm
by El_Choni
Should work with gif, jpg, wmf, ico, cur and bmp files, iirc.
Posted: Mon Apr 05, 2004 3:40 pm
by dige
Hi El_Choni,
LoadImage () does not work with AVIFIL32.DLL. Duno why :(
Please try this:
Code: Select all
UseEC_OLEImageDecoder()
#Lib = 5
If OpenLibrary ( #Lib , "AVIFIL32.DLL")
Debug LoadImage( #LoadImg, "C:\Temp\test.gif" ) ; > 0
CallFunction ( #Lib, "AVIFileInit" )
Debug LoadImage( #LoadImg, "C:\Temp\test.gif" ) ; = 0
endif
cya dige
Posted: Sun Apr 11, 2004 7:49 am
by El_Choni
Thanks, I'll have a look. Regards,
EDIT: works here (Windows 98 SE). Could you try this?:
Code: Select all
Debug Hex(EC_OLEImagePluginVersion())
Should show 20001. If it doesn't show that number, download the latest version. If it still doesn't work, I don't know right now which could be the problem.
Posted: Tue Apr 13, 2004 6:40 am
by dige
Reinstalled the plugin from ressource site and purearea.net ... but version
is still "20000".
regards,
dige
Posted: Tue Apr 13, 2004 8:21 am
by El_Choni
OMG, so I didn't upload it! LOL! I'll do it ASAP, maybe I take my time to include a help file if I can. In the meantime, you can download the lib, only the lib, at:
http://www.terra.es/personal5/temporald ... ePluginOLE
Regards,
Posted: Tue Apr 13, 2004 8:46 am
by dige
Okay, version is now "20001", but unfortunately nothing changed.
The following code does not work with WinXPSP1 and PB3.81 and 3.9
Code: Select all
UseEC_OLEImageDecoder()
If OpenLibrary ( #Null , "AVIFIL32.DLL")
Debug LoadImage( #Null, "C:\Temp\test.gif" ) ; Result > 0
CallFunction ( #Null, "AVIFileInit" )
Debug LoadImage( #Null, "C:\Temp\test.gif" ) ; Result = 0
EndIf
PB3.9 Errors:
Code: Select all
Functions\Image .text: undefined reference to '_OleUninitialize@0'
Functions\Image .text: undefined reference to '_OleInitialize@4'
Functions\Image .text: undefined reference to '_CreateStreamOnHGlobal@12'
Is it possible to get some debug information?
cya dige[/code]
Posted: Tue Apr 13, 2004 8:59 am
by El_Choni
Ok, this is useful info. This probably means that these API functions are, in XP, in a different DLL of that that the lib uses. For some reason, Windows includes these functions in two or three DLLs in Windows 98. I'll rewrite it to use other DLL and see if it works, thanks,
EDIT: Could you download and try it again, please?
Posted: Tue Apr 27, 2004 11:30 pm
by El_Choni
Hi,
Still works here. Could you try downloading this new version, please?
http://www.terra.es/personal5/temporald ... ePluginOLE
Tell me if you get any errors, please. Regards,