Re: how to get the color of a pixel(x,y) on the window?
- From: "chunlong84" <chunlong84 gmail com>
- To: "gtkmm-list" <gtkmm-list gnome org>
- Subject: Re: how to get the color of a pixel(x,y) on the window?
- Date: Fri, 5 Jun 2009 18:13:57 +0800
The r,g,b component is originally 8 bits(guint8),but the parameters of Gdk::Color.set_rgb(gushort r,gushor g,gushort b) is
16 bits(gushort),ranged from 0x0000 to 0xFFFF. so I transform it to 16 bits.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]