Closed cjvoce closed 1 year ago
Sorted with KeyBitmap.Create.FromStream() and
Stream BitmapToStream(Bitmap image) { MemoryStream stream = new System.IO.MemoryStream(); image.Save(stream, ImageFormat.Bmp); stream.Position = 0; return stream; }
... but be great to get KeyBitmap.Create.FromGraphics() back, and to get some documentation and/or backwards compatibility.
Hi,
I have a new StreamDeck Mini and looking at other reports, the PID has changed from 0x0063 to 0x0090. 4.2.0 appears to fix this.
However, I updated to 4.2.0 and that updates OpenMacroBoard to 4.0.0-preview as well (from 3.0.0). And this seems to have a LOT of changes or missing features.
The one I was using a lot, and can't seem to find a simple alternative for, is KeyBitmap.Create.FromGraphics().
I have now created a a System.Drawing.Bitmap which I want to display on a button on the StreamDeck. I can save this to disk then use KeyBitmap.Create.FromFile(), and have proved I can display it on the new StreamDeck - so I am happy the newer libraries fix the initial issues of not seeing the StreamDeck. But clearly that's not an acceptable method to display the Bitmap ;-)
Does anyone know of a way to do this? Is there any documentation for the alternative methods in the 4.0.x version? Is there a direct replacement for KeyBitmap.Create.FromGraphics() ?
Thanks in advance,
Chris