Images and Image Data

Michael Crawford michael.crawford at stonebow.otago.ac.nz
Thu Jul 4 00:50:00 EDT 2002


I have a little project in which I want to convert an array of numbers from
a text file into an image file. This will be done by making the highest
number white and the lowest number in the array black. The number in
between will be assigned a grey value depending on the amount.

For example 100,50,0,50,100 would make an image 1 pixel high and 5 pixels
across. The end pixels would be white the middle one black and the ones
either side 50% grey.

Manipulating the numbers is fine but generating the image from those
numbers is proving problematic. I can see that you should use the ImageData
property to do this but how just seems  completely beyound me at the moment.

Does any one have any examples or pointers on how I should go about doing this?

Thanks

Michael





More information about the metacard mailing list