Hi,
I'm having trouble generating an image from data that I simulate using
one of my own programs written in C. Could anyone give me a hand and
point me in the right direction please?
I can generate the 'raw data' in any convenient format. The trouble is
that I'm yet to crack the image 'encoding' that will then allow me
to display it on the screen.
I'm new to GDI+ (and .NET, and C# for that matter) and I have been reading
'Graphics Programming with GDI+' by M. Chand. Even though the book is
makes for easy reading with an awful lot of examples, it mostly focus
on manipulating images.
I have followed one of its many tutorials and I now have a little
application written in C# that opens & displays different image
formats, and that can convert & save the image to a different format.
I only require a single colour - usually grey, for this type of
application - with associated intensity gradient. I was told that
'BMP' was an appropriate bitmap format for my needs.
Could anyone tell me how I should write the simulated data to file so
that I can then open it as a bitmap image please?
Many thanks,
TM