且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Windows Phone 7 上将 BitmapImage 调整为 50x50?

更新时间:2021-07-24 03:28:25

试试这个

WriteableBitmap wBitmap = new WriteableBitmap(yourBitmapImage);

MemoryStream ms = new MemoryStream();

wBitmap.SaveJpeg(ms, 50, 50, 0, 100);

流将包含您调整大小的图像

The stream will contain your resized image