Converting a pixel value to component RGB values



Hi all,

I am writing a function which will copy a GdkImage to an image of another
format. As such, I need to derive the red, green, and blue component values
from the pixel value returned by gdk_image_get_pixel. Is this just a matter of
shifting bits? How would I do it if the GdkImage is a PseudoColor image?

Thanks,
--Arthur



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]