【发布时间】:2013-04-16 19:40:08
【问题描述】:
我有一个 writeablebitmap 对象,我想在 silverlight 中保存为 JPG,我该怎么做?
【问题讨论】:
-
使用 ImageTools 为 sl imagetools.codeplex.com
标签: c# silverlight bitmap jpeg
我有一个 writeablebitmap 对象,我想在 silverlight 中保存为 JPG,我该怎么做?
【问题讨论】:
标签: c# silverlight bitmap jpeg
我还将 writeablebitmap 对象转换为图像为
WriteableBitmap bitmap = new WriteableBitmap(Width,Height);
//在位图上绘制的一些操作
然后
Image imageFHR = new Image();
imageFHR.Source = bitmap;
imageFHR.Height = Height;
imageFHR.Width = Width;
myCanvas.Children.Add(imageFHR);
【讨论】: