dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Apr 17, 2000

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Animated Image Bitmaps

Question:
How do I animate an image in PowerBuilder? Someone told me I would have to split the gif into frames and then set up a timer.

Answer:
You can use the picture control to load your images in sequence. Place the picture control off the visible portion of the window. Then after each bitmap has been loaded use the draw function of the picture control to draw the image in the window. By swapping the image and drawing into the window you can achieve flicker-free animation.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Thanks for your registration, follow us on our social networks to keep up-to-date