0

How to convert System.Windows.Media.Imaging.BitmapSource to Bitmap for SharpDX?

Phiter
  • 14,570
  • 14
  • 50
  • 84
jshapen
  • 15
  • 3
  • That awkward moment when people link an answer that explains how to convert from bitmapSource to system.drawing.bitmap when the question is how to convert to SharpDX.bitmap which aren't the same because actual sharpDX.bitmap doesn't have the same pixel pattern and requires much more config than GDI bitmap.... +1 for trolling answers –  Jul 12 '17 at 13:52
  • wrongly closed -- not the same question at all. – Craig.Feied Dec 09 '18 at 05:39

1 Answers1

0

BitmapSource Class Represents a single, constant set of pixels at a certain size and resolution. For converting BitmapSource to Bitmap you can see this link Is there a good way to convert between BitmapSource and Bitmap?

Community
  • 1
  • 1
Nayeem
  • 58
  • 1
  • 7
  • Not just bitmap. Bitmap for SharpDX – jshapen Jun 13 '16 at 16:35
  • Well in that case you can see SharpDX.WIC.Bitmap class and SharpDX.WIC.BitmapSource class for converting to bitmap – Nayeem Jun 13 '16 at 16:53
  • Next question. How to convert System.Windows.Media.Imaging.BitmapSource to SharpDX.WIC.BitmapSource – jshapen Jun 13 '16 at 17:19
  • Poor jshapen, people really of no clue of what they are answering LOL, they don't understand sharpDX doesn't work the same way as GDI... –  Jul 12 '17 at 13:54