Carnage

Carnage

  • NA
  • 6
  • 0

Ho to efficiently display a byte[] containing BGR-values?

Jun 8 2004 5:53 PM
I'm working on a PocketPC application using .NET Compact Framework, which is supposed to process a frame captured from an attached camera. The frame can be accessed by calling an API-function which fills a byte array with the corresponding color-values according to DIB-format. My problem is to find an efficient way of putting this byte[] on the screen? So far, I created a FileStream, wrote a bitmap header, appended the complete byte array to the stream and used a picture box to display this bitmap file. This doesn't seem very efficient to me :-) but i wasn't able to find a more suitable and working solution. Maybe someone of u can tell me, how problems like this are handled commonly... Thanks in advance, CarNagE