Need Feature animated GIF files
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
I need badly loading GIF files into PB.
I must set the frames individually eg.
go to frame in a gif file
play and stop a gif file
Change the speed of a gif file.
Or has someone a DLL for this which I can Use?
Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
I need badly loading GIF files into PB.
I must set the frames individually eg.
go to frame in a gif file
play and stop a gif file
Change the speed of a gif file.
Or has someone a DLL for this which I can Use?
Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
http://www.basicguru.com/rapidq/kb/gifanim.zip
The example that comes with the zip file is for Rapid-Q, so perhaps one of the
Rapid-Q users here could translate the example into PureBasic for us?
PB - Registered PureBasic Coder
Edited by - PB on 28 January 2002 14:28:37
You can download gif89.dll from here:I need badly loading GIF files into PB.
has someone a DLL for this which I can Use?
http://www.basicguru.com/rapidq/kb/gifanim.zip
The example that comes with the zip file is for Rapid-Q, so perhaps one of the
Rapid-Q users here could translate the example into PureBasic for us?
PB - Registered PureBasic Coder
Edited by - PB on 28 January 2002 14:28:37
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
Fred,
I think a programming language must have the standard possibility to load gif image files. I think you just have to buy the licence.
You said PB is also for gameprogramming, so at least there must be gif image possibility.
Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Fred,
I think a programming language must have the standard possibility to load gif image files. I think you just have to buy the licence.
You said PB is also for gameprogramming, so at least there must be gif image possibility.
Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
First licence is very high (especially for redistruable software like a programming langage, because every users which will use PB will redistribute it) and secondly GIF is an outdated format (limited to 256 colour etc..). I plan to support the PNG in internal, like the JPEG, which boths offer better rate compression than GIF.
Fred - AlphaSND
First licence is very high (especially for redistruable software like a programming langage, because every users which will use PB will redistribute it) and secondly GIF is an outdated format (limited to 256 colour etc..). I plan to support the PNG in internal, like the JPEG, which boths offer better rate compression than GIF.
Fred - AlphaSND
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
Fred,
Thanks for you're explanation.
Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Fred,
Thanks for you're explanation.
Registered PB version : 2.90 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
BTW: does anybody knows how to handle xpm image files with PureB
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
ImpressiveI plan to support the PNG in internal, like the JPEG, which boths offer better rate compression than GIF.
BTW: does anybody knows how to handle xpm image files with PureB
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
Haven't ever seen an Xpm image.
About Gif: I've read somewhere that if your program is freeware, you don't have to care about the licence, so you could use the example included with Mr. Skunk's Dll library, which works for Gif files (have just tested it).
Bye,
El_Choni
Haven't ever seen an Xpm image.
About Gif: I've read somewhere that if your program is freeware, you don't have to care about the licence, so you could use the example included with Mr. Skunk's Dll library, which works for Gif files (have just tested it).
Bye,
El_Choni
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Franco.
It is also used in the windows world but not so often.
It's fully portable because it's ascii.
Here an example of a real xpm image file:
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - franco on 28 January 2002 20:55:04
A XPM image file is mostly used in the Linux/Unix world.Haven't ever seen an Xpm image.
It is also used in the windows world but not so often.
It's fully portable because it's ascii.
Here an example of a real xpm image file:
Code: Select all
/* XPM */
static char *digit1[] = {
"20 20 3 1",
". c #C0C0C0",
" c #808080",
"+ c #0000FF",
" ",
" ...................",
" ...................",
" ........+++........",
" .......++++........",
" ......+++++........",
" .....++++++........",
" .....++++++........",
" ........+++........",
" ........+++........",
" ........+++........",
" ........+++........",
" ........+++........",
" ........+++........",
" ........+++........",
" .....+++++++++.....",
" .....+++++++++.....",
" .....+++++++++.....",
" ...................",
" ..................."
};
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Edited by - franco on 28 January 2002 20:55:04
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
Do you have a working example for me?
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Do you have a working example for me?
Registered PB version : 2.90 (Windows)Haven't ever seen an Xpm image.
About Gif: I've read somewhere that if your program is freeware, you don't have to care about the licence, so you could use the example included with Mr. Skunk's Dll library, which works for Gif files (have just tested it).
Bye,
El_Choni
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by DarkUni.
GIF is just a plain, all around, crappy format IMHO.
If you want animated stuff, use a multi-frame sprite.
In other words, take all the frames of the "gif" and put them side my side on a long 'image strip'.
For example - you have 100x100 gif image. It has ten frames. Make a new image 1000x100, lay each frame side by side.
In your code, use CLIPSPRITE in a loop to 'display' each frame in turn.
If interested, I'll post some source code I've done.
Shane R. Monroe
Dark Unicorn Productions
GIF is just a plain, all around, crappy format IMHO.
If you want animated stuff, use a multi-frame sprite.
In other words, take all the frames of the "gif" and put them side my side on a long 'image strip'.
For example - you have 100x100 gif image. It has ten frames. Make a new image 1000x100, lay each frame side by side.
In your code, use CLIPSPRITE in a loop to 'display' each frame in turn.
If interested, I'll post some source code I've done.
Shane R. Monroe
Dark Unicorn Productions
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
Can you please send me the example.
Cor
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Can you please send me the example.
Cor
Registered PB version : 2.90 (Windows)GIF is just a plain, all around, crappy format IMHO.
If you want animated stuff, use a multi-frame sprite.
In other words, take all the frames of the "gif" and put them side my side on a long 'image strip'.
For example - you have 100x100 gif image. It has ten frames. Make a new image 1000x100, lay each frame side by side.
In your code, use CLIPSPRITE in a loop to 'display' each frame in turn.
If interested, I'll post some source code I've done.
Shane R. Monroe
Dark Unicorn Productions
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm