我正在使用Visual Studio Community 2015开发UWP。该项目将是一个聊天应用程序。
我需要在应用程序中实现高质量的动画表情符号。 由于质量损失,不希望将WebView与GIF图像一起使用。 将每个表情符号添加为单独的图像,使用故事板(来自图像帧)为每个表情图设置动画,并围绕它构建其他内容将非常无效,尤其是在内存较少的设备上。
有没有其他方法可以解决这个问题?
I'm working on a UWP using Visual Studio Community 2015. The project will be a chat application.
I need to implement high quality animated emoticons in the app. Using WebView with GIF images is not desirable, due to quality loss. Adding each emoticon as a separate image, animating each one with a storyboard (from image frames), and building the other content around that would be very ineffective, especially on devices with less memory.
Is there any other approach to solve this?
最满意答案
看看Win2D,特别是CanvasSpriteBatch,我想它应该提供你需要的性能。 您有一个在库中使用SpriteSheet的示例。
https://github.com/Microsoft/Win2D-Samples/tree/master/ExampleGallery/UAP/SpriteSheets
Take a look at Win2D and especially CanvasSpriteBatch, I suppose it should provide performance you need. You have a sample which use SpriteSheet in the gallery.
https://github.com/Microsoft/Win2D-Samples/tree/master/ExampleGallery/UAP/SpriteSheets
更多推荐
发布评论