摘要: 1. WriteableBitmap.SetSource 和 WriteableBitmap.LoadJpeg是不同的。[csharp] view plaincopyprint?constint CANVAS_WIDTH = 480; BitmapImage bmp = new BitmapImage(); bmp.SetSource(stream); //stream为原始图片数据,例如可以是从文件中读到的 int w = CANVAS_WIDTH; int h = CANVAS_WIDTH * bmp.PixelHeight / bmp.PixelWidth; WriteableBit.. 阅读全文
posted @ 2012-12-10 19:17 Jesee.Liu 阅读(397) 评论(0) 推荐(0) 编辑