开发者

Dynamic image/animation combining

I'm working on a solution for my new project (in C#). I'm trying to make开发者_如何学JAVA a dynamic image/animation combiner (maybe later even work with video's, but that's not required atm).

So basically my program is reading a xml file with all kinds of instructions the user needs to do. In the xml file it is possible that for 1 instruction multiple pictures are needed. So when there are 2 or 3 pictures (the maximum amount of pictures is 4) they need to be combined to 1 picture so I can show that on the image object on the main form. Also it is important that the pictures keep there proportions so the image doesn't look deformed.

I found a solution with GDI+ but it isn't that good as I wanted it and runs pretty slow on a bit older computers. Also combining animations with normal images is a real pain and goes very slow!

Is there a faster/easier way to do this? Maybe WPF is a solution but I got no experience with this.

Thnx for any help in advance!


This questsion is open now for mor then a year but I found the solution some time ago so I will post it here in case it is usefull for somebody else.

The best way to do this was creating to set up a grid dynamic. And then fill up each element of the grid with the needed media (Video, Image, animated gif's and even Viewport3D from another xaml file). Creating a grid in code is really easy so it should be a good solution for everybody who wants to do this in WPF.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜