Please Help
- From: M.Khan <masroor khan17 gmail com>
- To: gtk-devel-list gnome org
- Subject: Please Help
- Date: Thu, 10 May 2007 12:06:54 +0530
Iam converting values from 32bit Color space to 16bit color space (
supported by GdkColor)
while using the API to set the color values i need to convert the
corrosponding values of Red , Green and Blue and the pixel depth as
follows
GdkColor color;
color.pixel = 4
color.red = red color
color.green = green color
color.blue = Blue color
gdk_color_alloc( gdk_colormap_get_system(), &color );
gdk_gc_set_background( gdkgc, &color );
but the 32 bit color value "0x7FFFFFFF" has the alpha value present in
it, How do i convert that value and set it to the GdkColor Structure
in order to have the same look.??
please guide me on the proper conversion and the value of pixel variable
Thankx
--
Best Regards,
Masroor Khan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]