Skip to main content
gamedev.net
🔒 Locked

Article for Delphi

Started by Daboy 0 replies 150+ views
Original Post
Daboy
Daboy
Hey all i would love an article on how to run a few images through timage on a button click (make an animation) or how to run a .gif file through the tgifimage on a button click... Thx
Jordan Weberwww.pheonixsoftware.com
Xsist10
Xsist10
hell i can give you that right now

add a timer......


// holds images
Animation : Array[1..NumFrames] of TBitmap
// speed of animation
Speed : Integer;

// Load BMP file for animation
Animation[1].Image.LoadFromFile(image1.bmp);
// and so on for all the images

BlitButton.Image := Animation[timer1.timer mod speed].Image;
I burn cold

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.