Converting a pixel value to component RGB values
- From: Arthur Jerijian <lightmanaj earthlink net>
- To: gtk-list redhat com
- Subject: Converting a pixel value to component RGB values
- Date: Fri, 20 Aug 1999 22:56:10 -0700
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]