Share via

How do I create an animation from a series of bmp files (in dot net)

rael isaac 41 Reputation points
2021-10-19T15:15:03.787+00:00

How do I create an animation from a series of bmp files in dot net? Suppose for example I want to show a cartoon, and I have the frames for it, each one in a bmp file. One way to do this within a program is just use a timer to show successive bitmaps. However, there are stand-alone animated images (like animated GIFs). If I could product one of those, for example, I could just email the animation to recipients, without sending a program to display it.
Any help is appreciated?

Developer technologies | VB
0 comments No comments

Answer accepted by question author

Castorix31 91,876 Reputation points
2021-10-19T20:29:27.38+00:00

You can create an animated GIF with GifBitmapEncoder, but it won't be animated in loop in Web browsers because Metadata will be missing
For this, you can do it with IWICBitmapEncoder and IWICMetadataQueryWriter with P/Invoke
(tested on Windows 10 1909, but a bit complex...)

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.