title: SharpDX Texture2D to Bitmap
body: <p>I have a problem with using SharpDX. I convert a Bitmap, lock the bits with the lockBits method and then create a DataStream and build a Texture2D from it. This seems to work quite well, no error occurs.
  Now I have the following problem. I want to convert the Texture2D back to a Bitmap. There is a method called Texture2D.ToStream(size, texture2D, stream) but when I try this only an error occurs.
  Can anyone help me with this issue? A conversion to an Image or WriteableBitmap would be also okay.</p>