How to Convert a WriteableBitmap image to Byte array in WinRt App
我想在Windows Store Metro样式的应用程序中使用C代码将
EDOCX1型展览会的性能
1 2 3 4 5 6 7 8 9 | byte[] ConvertBitmapToByteArray(WriteableBitmap bitmap) { using (Stream stream = bitmap.PixelBuffer.AsStream()) using (MemoryStream memoryStream = new MemoryStream()) { stream.CopyTo(memoryStream); return memoryStream.ToArray(); } } |