Page 1 of 1

No WriteableBitmap - How can I add a pixel array to the screen?

Posted: Sat Dec 19, 2020 2:20 pm
by edhalsim
Hi,

I see the class WriteableBitmap isn't implemented yet. I have a function that builds random maps in memory (just an int[][] of pixels). I want to show the map on the Canvas, which in Silverlight I did by:
ImageBrush brush = new ImageBrush();
brush.ImageSource = this._map.Background.ConvertToBitmap(this._map.Palette);
this.Canvas.Background = brush;

How would I do this in OpenSilver?

Thanks
- Ed.