31 July 2010, 20:38:30
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Imaging 0.26.4 Released!
Home
Help
Search
Members
Login
Register
Vampyre Imaging Library Forum
>
Imaging Category
>
Help & Questions
>
Sample code for APNG Support
« previous
next »
Pages: [
1
]
Reply
Print
Author
Topic: Sample code for APNG Support (Read 394 times)
Alp
Imaging User
Offline
Posts: 2
Sample code for APNG Support
«
on:
10 March 2010, 19:00:17 »
Quote
Hi all, is there any sample code for using apng image? I mean i want to show an apng (transparent) image on my form but i couldn't find any sample code for it.
Thanks right now...
Logged
Galfar
Administrator
Imaging User
Offline
Posts: 249
Re: Sample code for APNG Support
«
Reply #1 on:
12 March 2010, 18:16:31 »
Quote
Check out VCL Image Browser and LCL Imager demos - they both can load and display APNG images.
Basically you need to load the image into TMultiImage and then convert each frame to VCL TBitmap descendant which you can easily display on form.
Logged
Alp
Imaging User
Offline
Posts: 2
Re: Sample code for APNG Support
«
Reply #2 on:
13 March 2010, 00:02:30 »
Quote
Thank you for your reply, but i mean i want to show the animation.
With another word, i want to assign an animated png file to any control then let it animates the file.. Is it possible? or should i assign all frames one by one?
Thanks right now..
Logged
Galfar
Administrator
Imaging User
Offline
Posts: 249
Re: Sample code for APNG Support
«
Reply #3 on:
13 March 2010, 14:13:09 »
Quote
There's no self animated TGraphic class in Imaging currently.
You could manually switch frames one by one (you'll need to know frame delays for proper animation read from the file - this will be in SVN repository during today). Another option is to modify ExtraGIF mod found in Imaging\Extras\Contrib\ExtraGIF (self animating class for GIF images) to support APNG images as well.
Logged
Reply
Print
Pages: [
1
]
« previous
next »
Vampyre Imaging Library Forum
>
Imaging Category
>
Help & Questions
>
Sample code for APNG Support