如何在Universal Windows Project中实现动画表情符号?(How to implement animated emoticons in Universal Windows Proj

编程入门 行业动态 更新时间:2024-10-23 06:20:53
如何在Universal Windows Project中实现动画表情符号?(How to implement animated emoticons in Universal Windows Project?)

我正在使用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

更多推荐

本文发布于:2023-04-29 02:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1334553.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表情符号   动画   如何在   Windows   Universal

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!