Scaling signed intergers
Posted: 2007-12-06T07:15:14-07:00
How does IM handle signed integers in the PixelPacket structure?* When I am reading a signed integer with ReadBlob, should I subtract a factor of (1 << (depth - 1)) before loading into the pixel packet structure, or does this happen further down the line? My intuition tells me that IM stores it as an unsigned integer and GetImagePixels is smart enough to correct if the "QuantumFormat" property is set to "SignedQuantumFormat." Is this correct?
* - For a non-HDRI build.
Sean
* - For a non-HDRI build.
Sean