Fast display of raw pixel data from byte[] .net Compact Framework
-
29-10-2019 - |
Question
I'm playing with rasters and I want to know the fastest way to paint a byte[] to the screen using the .net CF. The array is a standard 24bit raster (Screen.Width * Screen.Height * 3 in length, RGB order) and right now I'm saving the array to a Bitmap object and drawing it to the screen using the Graphics.DrawImage(bmp) method. I feel that there must be someway of doing this w/o having to create a Bitmap.
I'm using C#, but I can to go native if needs be (I'd prefer P/Invokes if possible, assuming that is the case)
Thanks for any help!
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow