Saving a bmp file from an array

  • Thread starter Thread starter tamasumalta
  • Start date Start date
T

tamasumalta

I have an array of pixels and I would like to create a file using the
mentioned array. Should I use the setpixel function or create a stream?
I already have the x and y coordinates and r g b colours stores in this
array. My next step is to create a bmp image

Thanks for your attention
Jansen
 
I have an array of pixels and I would like to create a file using the
mentioned array. Should I use the setpixel function or create a stream?
I already have the x and y coordinates and r g b colours stores in this
array. My next step is to create a bmp image


This depends on how the data is stored in the array (array of 'Color',
'Byte', ...) and if it already contains padbytes or not.
 
The array consists of 3 indexed values
1) the colour id (red, green or blue)
2) the x position
3) the y position

It is an array o bytes
 
Back
Top