News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Gif Animation Control

Started by dougiem, October 29, 2005, 07:50:41 PM

Previous topic - Next topic

dougiem

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

Farabi

 :U Thanks. Real good.
I think the next improvement is to make the return value as a hBmp with the lenght and height structure.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

dougiem

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.