PNG Animation Util??

BlitzPlus Forums/BlitzPlus Programming/PNG Animation Util??

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hello Eikon,

Back for a bit. Mind if I upload the PNG's to your site?
Following is a hack on sample code to go with. Working on the other method as we speak.
Jim
--------------------------------------------------------
; LoadAnimImage/MaskImage Example
Global gfxTach,gfxTach1,gfxTach2

; Standard graphic declaration and double buffering setup
Graphics 309,309,0,2
SetBuffer BackBuffer()
; Load the imagestrips
gfxTach0=LoadAnimImage "\TachFace\Div_10\119.png",309,309,0,120)
gfxTach1=LoadAnimImage("\TachFace\Div_10\239.png",309,309,0,120)
gfxTach2=LoadAnimImage("\TachFace\Div_10\359.png",309,309,0,120)
Repeat
For i = 0 To 120 Step 1
If i > 119 Then Exit
If i = 61 Then Delay 1000
If i > 59 Then
DrawImage gfxTach1,0, 0, i ;draw the image
Flip ; show the buffer
Cls
End If
Next
For i = 0 To 120 Step 3
If i > 119 Then Exit
DrawImage gfxTach2,0, 0, i ;draw the image
Flip ; show the buffer
Cls
Next

For i = 0 To 120 Step 6
If i > 102 Then Exit
DrawImage gfxTach0,0, 0, i ; draw the image
Flip
Cls
Next
Delay 1000

Until KeyHit(1)
End