Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 7 GIF in picture Dialog

Tags:

gif

delphi

I am using Delphi 7 and the OpenPictureDialog to open / preview various images. This works fine when opening a bmp, jpg, etc.; however, if I try to do the same with a gif I get the following error. Anyone got any idea why or have a fix for it?

thanks

Colin

alt text

like image 867
colin Avatar asked Nov 30 '10 11:11

colin


2 Answers

Use this TGIFImage. This is the original unit which was donated to CodeGear in 2006. It supports Delphi7.

copy GifImage.pas to your project path (from gifimaged2010b.zip) , and add to your uses list ;

thats all

It will automatically add GIF in filters for openpicturedialog (**)

like image 78
VibeeshanRC Avatar answered Oct 09 '22 19:10

VibeeshanRC


Just use the GraphicEx library by Mike Lischke. Just add a couple files to your uses list and your application natively supports GIF, TIFF, PNG and many many others. The standard TImage will work with them and also the TPictureDialog (along with all others standard components that use TGraphic - take note that some features will only work at runtime).

like image 40
AlexV Avatar answered Oct 09 '22 20:10

AlexV