The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: dougiem on October 29, 2005, 07:50:41 PM

Title: Gif Animation Control
Post by: dougiem on October 29, 2005, 07:50:41 PM
This control displays animated gifs with some limitations.
1) assumes a global color table
2) wont decode 'frame size optimisation'
3) because the iPicture is a bit slow, theres a steep curve between size,frame speed and choking up.
The majority of ani gifs are ok. those which fall into 1) and 2) can be loaded into a gif editor and re-saved with a global table and no frame optimisation.
Hope you find this useful.
dougiem.

http://www.dougiem.fsnet.co.uk/asm/GifAnimTest.zip 371k
Title: Re: Gif Animation Control
Post by: Farabi on October 30, 2005, 04:01:36 AM
 :U Thanks. Real good.
I think the next improvement is to make the return value as a hBmp with the lenght and height structure.
Title: Re: Gif Animation Control
Post by: dougiem on November 02, 2005, 02:27:34 PM
Farabi,
    The return value is the handle of the control, and can be used to get the dimentions by;

; SendMessage,hWin,WM_GIFGET,addr GIFstatus,0
;
;                returns info in structure:
;                      GIFStatus struct
;                            gWidth            dword ?
;                            gHeight           dword ?
;                            gLoop             dword ? number of loops
;                            gDelayTime2    dword ? the frame time of the second frame in the series
;                      GIFStatus ends


I have updated the code at the link above to include animated buttons.

dougiem.