Is there any *lightweight* Image control, which can display jpg, gif
and png pictures. I have tried TAdvPicture (from TMSSoftware). However,
it cannot display a tranparent PNG picture.
Best regards!
sx
You do not need any kind of TImage to do just that you just need
a library that adds in to existing TImage.
Take a look on the following
1) GraphicX a library that supports multiple file formats
http://www.soft-gems.net/Graphics.php
2) TPNGImage for Png supporting alpha channels etc.
http://sourceforge.net/projects/pngdelphi
3) PNG Components A couple of extra components for PNG support
like PNGImageList etc
http://www.thany.org/article/32/PngComponents
Regards
Yannis.
I have tried PngComponent and PngImages. Both work perfect with PNG pictures. But I always get a runtime error while opening a jpeg or a gif file.
> I have tried PngComponent and PngImages. Both work perfect with PNG
> pictures. But I always get a runtime error while opening a jpeg or a
> gif file.
>
for jpeg just add the jpeg unit in the uses clause of your main form
for GIF image download the TGIFImage from http://www.tolderlund.eu/delphi/
it supports animated gifs as well and all in the current TImage control.
If you are unable to make it work with the mentioned components then please
try to create a small sample showing the problem you have and I'll try to
see where the problem is also it will help to know the version of Delphi
you are using.
Regards
Yannis.
Thanks a lot.