Saving a bmp file from an array

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
 
H

Herfried K. Wagner [MVP]

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.
 
T

tamasumalta

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top