gif animation

General TRichView support forum. Please post your questions here
Post Reply
aussie
Posts: 5
Joined: Thu May 08, 2008 7:41 pm

gif animation

Post by aussie »

1) is there any recent example of gif animation in richview just because i couldnt make any application thought this trichview. I found some example but they are fairly old and i am using codegear 2007
(this example may contain local harddrive gif like c:\anim.gif)

2) when i try to add gif animation which you gave the example of the site got error such (insertimage) how can i fix this problem?

3) can i use gif anim from which sended stream to another client? for example when from client1 msn sent anim gif to msn client2 and client2 got the anim gif from 80th port and view in richview can i do same things with trichview ?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It's very simple.
1) Set RichView1.AnimationMode := rvaniOnFormat.
2) Include the unit RVGifAnimate2007 in your project.
3) Call RegisterClass(TGifImage) one time, before the first loading.
Now you can insert gif animations like any other graphic in TRichView, using TGifImage class (from GifImg unit shipped with Delphi 2007)

As for sending data between computers, this part of code is not related to TRichView. You can send gif file (or rvf file containing gif), receive it, then load like local files.
Post Reply