0

I created some methods to generate plots in memory that provide a WritableBitmap that I was consuming in WPF controls.

Now I need to show the same images in a Blazor app. I investigated, and it seems that the only way to do this in memory, with no files involved, is to generate a string and use it in the <img src="data:image/bmp;base64,@YourDataHere"/>

But I don't find a way to have the conversion nicely done...

Any help?

PS: I'm open to any other approach someone can suggest for having the WritableImage shown on Blazor page. This src/base64 thing just seems to be what I found so far.

javirs
  • 1,049
  • 26
  • 52

0 Answers0