我必须并行工作(当然是异步任务),模糊从文件夹中选择的图像,所以我找到了这个(BitmapImage),但问题是我不知道如何访问这个对象的字节或像素,以便我可以更改它们,模糊或其他东西: var folderPicker].OpenAsync(Windows.Storage.FileAccessMode.Read))//Here I will use some array of BitmapImagevar <e
我正在尝试从图像文件中读取像素数据作为byte[],以便在内存中存储。(字节数组稍后将提供给位图图像对象,但我希望数据放在内存中,这样就不会出现I/O阻塞。)//arraySize and stride previously defined
new BitmapImage(imageUri).CopyPixels(pixelArray , stride, 0);
return pixelAr