Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can I convert WriteableBitmap to matrix in c#, That is, for a two-dimensional array of int like: int[,] mat?

What I have tried:

I tried to print on the screen a type of image WriteableBitmap but I can not, so I want to try to convert to a number matrix, then I can print it on the console screen.
Posted
Comments
[no name] 26-Jun-21 21:25pm    
You can get an array; of bytes.

https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.media.imaging.writeablebitmap.pixelbuffer?view=winrt-20348

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900