c# - create bitmap with filestream -
I need to create a bitmap with Fillstream so far I have this code:
< Code> use (filestream BMP = file.creative (@ "c: \ test.bmp")) {binarywitter writer = new binarywriter (BMP); Int i = 0; // Author. Prakash ((* four *) and file title, size (fileheader)); // Author. White ((* four *) and information, size (for information)); (Int closeos = 0; rows & lt; 160; rows ++) {for (coles colon = 0; cols & lt; 112; cols ++) {writer.Write (CamData [i]); I ++; }} Bmp.Close (); }But I still need the header information for bitmap. My problem is, I do not know how to implement them in C #. I know that resolution (320 x 240) and my pixelite 16-bit grayscale values are given in the USA chart.
Thanks
One byte array with a
bitmap There is a constructor to make. Then, to stream it into BMP format, save using member functions of
bitmap . See and.
Comments
Post a Comment