flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Animated gif viewer with gdi+

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 09 Dec 2016, 07:38
Several compiler solutions for and animated and simple gif viewer, 32 and 64 bits. With the following considerations:

- Fasm. I have attached a "doesn't work" version that is similar to the 64 bit version except that the first one has a parameter in the prDrawFrameGif subroutine, that in the working version is a global variable.

- TinyC. Both 32 and 64 bits version don't work. The api function GdipLoadImageFromFile gives an error. Its two parameters seems to be ok. If anyone find a solution, please, let me know.

I'm interested on fixing the TinyC version, if anyone find a solution, please, let me know.


Description:
Download
Filename: GDI+.zip
Filesize: 156.6 KB
Downloaded: 1059 Time(s)


_________________
Siempre aprendiendo
Post 09 Dec 2016, 07:38
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1404
Location: Piraeus, Greece
Picnic 09 Dec 2016, 09:57
Very nice and useful, i have just tested the Win32 version with various gif images.
Post 09 Dec 2016, 09:57
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 09 Dec 2016, 10:19
Thank you, Picnic. There are yet some things to be added, but the goal is just do it work.

- If the gif has a transparent background, it doesn't clean the background. It can be fixed using a double buffer to avoid the flickering. If you use a background for the client area, you will get flickering.

- Read the ellapse time between frames, not always 100 milliseconds.
Post 09 Dec 2016, 10:19
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 16 Jan 2017, 10:33
As always, very good job. just the comments not in english, but wo cares? it's your code Wink

I used your old GDI demo (xor texture) to introduce fool in the EZ gdi world Wink
Post 16 Jan 2017, 10:33
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 16 Jan 2017, 13:53
Thank you, edfed, nice you like it Very Happy

_________________
Siempre aprendiendo
Post 16 Jan 2017, 13:53
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 28 May 2017, 16:05
Hello. A revision of the animated gif viewer with gdi+. This enhanced version work well with all the compilers: fasm, masm, nasmx, PellesC and TinyC for win32 and win64. Now transparent gifs do not blur the background. Besides now you can open any other gif than the default one, bearing in mind that need to use unicode chars for that.

BTW. To open a file you have to press the button "1"

Greetings to John Findley
Real programmers do credit. Do you?


Description:
Download
Filename: GDI+.zip
Filesize: 182.03 KB
Downloaded: 963 Time(s)


_________________
Siempre aprendiendo
Post 28 May 2017, 16:05
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.