开发者

RenderTargetBitmap save raw data to disk

开发者 https://www.devze.com 2023-03-28 18:04 出处:网络
I have a hight fps stream of RenderTargetBitmap\'s I want to save them to disk to process them later, I do not want to encode them to Png, bmp or开发者_JAVA百科 what ever, I want to save the raw byte

I have a hight fps stream of RenderTargetBitmap's I want to save them to disk to process them later, I do not want to encode them to Png, bmp or开发者_JAVA百科 what ever, I want to save the raw byte buffer.

Is that possible?

Thanks


You could use the CopyPixels method to get the raw pixels. Then just write it out like any other data. More information on getting the pixels can be found here.

But really, you could save it out as a Tiff with no compression and get the same results.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号