Here's a quick link of how to create a bitmap programmatically. You'll have
to piece together how you're arrays fit into the SetPixel methods...
http://msdn.microsoft.com/library/de...ridvisualc.asp
Having said that, I'll mention that SetPixel is very slow (well, when
looping 4 million times it is, not sure for 300,000 times to make a 640x480
bitmap). I suggest using unsafe code, i.e. pointers. This site has a very
good description of how to set pixels by using pointers. I would get your
code working according to the above link, then if you need the speed
optimize it as follows:
http://www.codeproject.com/cs/media/...cfilters11.asp
--
Mike Mayer
http://www.mag37.com/csharp/ mi**@mag37.com
"Jeroen Ceuppens" <Je*************@barco.com> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
I have the colormap (ARGB, 8bit , so every color from 0 to 255) , put it
in an array (1dim)
I have the pixel date (array 640x480)
What is the best way to make with these array's a bitmap file?
Thx
Jeroen