Hi everyone!
I've read several Bitmap-related threads but haven't find a solution.
I am working on a raytracer program. I have an array of "custom color" objects - the color class basically contains only the RGBA values and a couple of overloaded operators.
I would like to display this array on a PictureBox - what would be the easiest way to convert my structure to a Bitmap?
(I know, this array-thingy doesn't look like to be an optimal solution, the whole thing is based on an old C-OpenGl code of mine, later I would like tho replace everything with generic lists)
I've read several Bitmap-related threads but haven't find a solution.
I am working on a raytracer program. I have an array of "custom color" objects - the color class basically contains only the RGBA values and a couple of overloaded operators.
I would like to display this array on a PictureBox - what would be the easiest way to convert my structure to a Bitmap?
(I know, this array-thingy doesn't look like to be an optimal solution, the whole thing is based on an old C-OpenGl code of mine, later I would like tho replace everything with generic lists)
Comment