I am using the following code to display a 32 bit grayscale image. Even if I clearly set every pixel to be 4294967297 (which should be white), the end result is always black, what's wrong with me here? The image is just 64x64 pixels.
CGColorSpaceRef colorSpread = CGColorSpaceCreateDeviceGray (); Ptr = (float *) molk (4 * xDim * yDim); For (i = 0; i You are using a float component image to make sure that the type of ptr is float * And try to set the value to 0.5f instead of 42 9 4967297.
Comments
Post a Comment