Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there any lightweight Image control with jpg, gif and png support

19 views
Skip to first unread message

Stanley Xu

unread,
Aug 22, 2006, 2:33:43 AM8/22/06
to

Hello All,

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

Yannis

unread,
Aug 22, 2006, 3:45:23 AM8/22/06
to
"Stanley Xu" <del...@borland.com> wrote in
news:44eaa547$1...@newsgroups.borland.com:

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.

Stanley Xu

unread,
Aug 22, 2006, 4:27:06 AM8/22/06
to

>
>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
>


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.

Yannis

unread,
Aug 22, 2006, 4:51:29 AM8/22/06
to
"Stanley Xu" <del...@borland.com> wrote in
news:44eabfda$1...@newsgroups.borland.com:

> 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.

Stanley Xu

unread,
Aug 23, 2006, 1:09:05 AM8/23/06
to

It works. Maybe I have forgotten to include Jpeg and GIFImage in uses-clause.

Thanks a lot.

0 new messages