的WebP库C# [英] WebP library for C#

查看:2201
本文介绍了的WebP库C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好像没有为的WebP没有代码示例在C#。有没有?我并不需要直接节省,但与放大器显示的WebP图像;作为转让的WebP将是很好。

It seems like there is no code samples for WebP in C#. Is there any? I don't need to display WebP images directly but saving & transferring as WebP would be nice.

推荐答案

看看的 http://webp.codeplex.com/ 。还有就是让您轻松编码为的WebP格式的库。看看这个问题的更多信息:

Take a look at http://webp.codeplex.com/. There is a library that allows you to easily encode into WebP format. Check out this question for more information:

转换为位图图像的WebP

该库可以让您保存到的WebP格式,像这样:

The library allows you to save into WebP format like so:

using (Image image = Image.FromFile("image.jpg"))
{
   Bitmap bitmap = new Bitmap(image);
   WebPFormat.SaveToFile("image.webp", bitmap);
}

这篇关于的WebP库C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆