有沒有簡單的方法將變量WriteableBitmap的內容保存到IsolatedStorageFile?我正在編寫一個處理WriteableBitmap中的像素的程序,然後將處理後的位圖保存爲文件* .bmp並將其存儲在「保存的圖片」目錄中。我有將WriteableBitmap保存爲jpeg文件的代碼,但正如我之前所說的,我不想以任何方式壓縮圖形。請幫我解決我的問題。 private void S
如何通過使用可寫位圖從Windows應用商店中的圖像獲取RGB顏色百分比。 在Windows應用程序,我得到它前面是這樣的: public static Color getDominantColor(Bitmap bmp)
{
//Used for tally
int r = 0;
int g = 0;
int b = 0;
int
我想將BitmapSource的一部分複製到WritableBitmap。 這是到目前爲止我的代碼: var bmp = image.Source as BitmapSource;
var row = new WriteableBitmap(bmp.PixelWidth, bottom - top, bmp.DpiX, bmp.DpiY, bmp.Format, bmp.Palette);
r