get_red_pixel_details


Description:

public void get_red_pixel_details (uint32 mask, int shift, int precision)

Obtains values that are needed to calculate red pixel values in TrueColor and DirectColor.

The “mask” is the significant bits within the pixel. The “shift” is the number of bits left we must shift a primary for it to be in position (according to the "mask"). Finally, "precision" refers to how much precision the pixel value contains for a particular primary.

Parameters:

this

A Visual

mask

A pointer to a uint32 to be filled in, or null

shift

A pointer to a SortColumn to be filled in, or null

precision

A pointer to a SortColumn to be filled in, or null