Is it possible to get something drawn with default .net paint methods (System.Drawing methods) to a SharpDX Texture2D object so that i can display it as a texture? Preferably with the SharpDX Toolkit.
If yes, how?
edit: what i am trying so far:
Bitmap b = new Bitmap(100,100);
MemoryStream ms = new MemoryStream();
b.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
Texture2D tex = Texture2D.Load(g.device, ms); // crashing here
ms.Close();
bitmap.Save(ms, System.Drawing.Imaging.ImageFormat.Png)
but then sharpdx thinks its a DDS and fails when loading. – Hypoglossal