Page 1 of 1

How to make gif-animation by means of Alaska+Express?

Posted: Mon Dec 27, 2021 10:37 pm
by Eugene Lutsenko
How to make gif-animation by means of Alaska+Express?

Re: How to make gif-animation by means of Alaska+Express?

Posted: Tue Dec 28, 2021 12:44 am
by Auge_Ohr
Eugene Lutsenko wrote: Mon Dec 27, 2021 10:37 pm How to make gif-animation by means of Alaska+Express?
there is a Sample in Express++
c:\exp19\Samples\Animgif\playgif.PRG

it does need ActiveX (which must be installed)

Re: How to make gif-animation by means of Alaska+Express?

Posted: Tue Dec 28, 2021 2:55 am
by Tom
The PLAYGIFO.OCX control which is referenced in this 15 years old sample is not available anymore from the owner/distributor, and if you try to find it, you will end on several websites with horrible content.

Re: How to make gif-animation by means of Alaska+Express?

Posted: Tue Dec 28, 2021 6:31 am
by rdonnay
I wrote an application for a customer who still uses the PLAYGIFO.OCX.

This one is still working good for him.

http://bb.donnay-software.com/subscribe/playgif.zip

Re: How to make gif-animation by means of Alaska+Express?

Posted: Thu Dec 30, 2021 9:56 pm
by Eugene Lutsenko
Many thanks to everyone!

And how to create a gif animation using Alaska +Express?
Is it possible to do this from jpg files and if there are very, very many of them, for example 10000?

Re: How to make gif-animation by means of Alaska+Express?

Posted: Fri Dec 31, 2021 12:01 am
by Auge_Ohr
hi Eugene,

here you find Structure of GIF89a Format
https://www.w3.org/Graphics/GIF/spec-gif89a.txt

have not "see" any Code to "make" a GIF using Xbase++

---

i can "play" a (very) "simple" GIF89a File with my CLASS DXE_GIF() using "pure" Xbase++
https://www.xbaseforum.de/viewtopic.php?f=16&t=12166

:idea:
you can "reverse" my Code to "write" a GIF File ...

Re: How to make gif-animation by means of Alaska+Express?

Posted: Fri Dec 31, 2021 1:37 am
by Eugene Lutsenko
Auge_Ohr wrote: Fri Dec 31, 2021 12:01 am hi Eugene,

here you find Structure of GIF89a Format
https://www.w3.org/Graphics/GIF/spec-gif89a.txt

have not "see" any Code to "make" a GIF using Xbase++

---

i can "play" a (very) "simple" GIF89a File with my CLASS DXE_GIF() using "pure" Xbase++
https://www.xbaseforum.de/viewtopic.php?f=16&t=12166

:idea:
you can "reverse" my Code to "write" a GIF File ...
Theoretically, I understand how to do this, but in practice I can hardly do it

Re: How to make gif-animation by means of Alaska+Express?

Posted: Fri Dec 31, 2021 6:52 am
by rdonnay
Is it possible to do this from jpg files and if there are very, very many of them, for example 10000?
Yes, look at the sample program: \exp20\samples\animation\animation.prg.

/*
This sample program shows how to create an animation (similar to an animated GIF)
from a set of .JPG, .BMP, .GIF or .PNG files.

First, the set of files are stored in an XML file as binary data.
The file is created by the function AnimatedImageCreate().
This uses the eXpress++ DC_XmlNode() class to create the XML.

Then the animation is run by reading the XML and using the XbpBitmap:setBuffer()
method to paint each image. This is being run in another thread.
*/

You can run the animation forward or backward and even set the starting and ending frame.

Re: How to make gif-animation by means of Alaska+Express?

Posted: Sat Jan 01, 2022 10:59 am
by Eugene Lutsenko
Thanks a lot, Roger!