nakonec jsem to vyresil takto ..:
jsou tam obe varianty
Can you tell me how to install GifImage as a component in delphi 7?
It is not a component, just a Delphi unit.
You do not need to install it in Delphi.
However, you can add the unit to a design time package if you want.
But you only need to do this if you want to load gif files at design time.
I normally recommend to put the GifImage.pas file in a directory where you keep other Delphi units you might have with usefull procedures and functions.
Add this directory to Delphi's search path in
"Tools, Environment Options, Library, Library path".
Then you do not need to specify anything in Project Options when you need to use the unit, just add GifImage to your program's uses clause.
By doing this you can only load and display GIF images at runtime, not at designtime.
If you want to add the unit to a design time package in order to enable you to load gif files at design time in the Delphi IDE, this is the steps you need to follow:
1. Create a directory where you place the GIFImage.pas unit.
Example directory: C:\D7Components\GifImage
Place the GIFImage.pas unit in this directory.
2. Start Delphi 7 and select the menu items Component, Install Component...
3. Select the "Into new package" tab.
4. In the "Unit file name" box enter the path "C:\D7Components\GifImage\GIFImage.pas".
5. In the "Package file name" box enter a suitable name for the package such as "C:\D7Components\GifImage\GIFImageD7.dpk".
(The package name must be different from "GIFImage.dpk")
6. In the "Package description" box enter a description such as "GifImage Design Time Package".
7. Click OK.
8. You will be asked to confirm that the package is built and then installed.
9. Click Yes.
Or
Click No, close the editor window, click the option button, select the "Designtime only" radiobutton, click OK, Click Compile and OK, Click Install and OK.
10. Click OK to the message that the package has been installed.
11. Select File, Close All. Click Yes to save changes to the package.
12. Go in to Tools, Environments Options, Library tab.
Confirm that the directory "C:\D7Components\GifImage" has been added to the "Library path".
If it isn't there, add the directory manually.
13. That's all.
Note that since TGIFImage is not a component, it will not show in the component palette.
If you later want to remove the design time package:
1. Select Component, Install Pakcages...
2. Scroll down and select the "GifImage Design Time Package".
3. Click Remove and OK.
4. Remove the directory path from Tools, Environments Options, Library tab, "Library path" box.
5. Click OK.
a pak uz staci kousek code:
Simply add the GifImage unit to one the uses clauses in your program.
Then you can load GIF files into a TImage component the same way you load BMP files.
uses
GifImage;
procedure TForm1.Button1Click(Sender: TObject);
begin
Image.Picture.LoadFromFile('C:\SomeDir\SomeFile.gif');
end;
a je to, funguje perfektne, .. ve Photoshopu se musi Gif ukladat pres Ulozit pro web, jinak se mi zobrazovala tak nejak divne.