Originally Posted by
Magos
I interpret it as:
1) He has a bitmap, a 2D array of RGB values (pixels)
2) He performs some operation on the bitmap resulting in a "thickness" value for each pixel
3) This "thickness" is a float value
4) He wants to store this "thickness" map, but refuses to save it as a new array and instead wants to reuse the bitmap
5) He converts the "thickness" into RGBA (float to 4 bytes, for each pixel) and places it in the bitmap
6) When all pixels are converted he traverses all pixels to find the min and max "thickness" value
7) Using min/max he normalizes all "thickness" values in the bitmap (into range 0.0 -> 1.0)
8) He then converts this new normalized "thickness" into a grayscale color
9) his bitmap, whatever it is, is now done