【问题标题】:Saving writeablebitmap to a JPG in silverlight在silverlight中将writeablebitmap保存为JPG
【发布时间】:2013-04-16 19:40:08
【问题描述】:

我有一个 writeablebitmap 对象,我想在 silverlight 中保存为 JPG,我该怎么做?

【问题讨论】:

标签: c# silverlight bitmap jpeg


【解决方案1】:

我还将 writeablebitmap 对象转换为图像为

WriteableBitmap bitmap = new WriteableBitmap(Width,Height);

//在位图上绘制的一些操作

然后

Image imageFHR = new Image();
 imageFHR.Source = bitmap;
 imageFHR.Height = Height;
 imageFHR.Width = Width;
 myCanvas.Children.Add(imageFHR);

【讨论】:

  • 非常感谢 :),我还使用了 ImageTools 库中的扩展方法来做到这一点
猜你喜欢
  • 2011-04-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-03
  • 1970-01-01
相关资源
最近更新 更多