Re: how to get the color of a pixel(x,y) on the window?



   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]