最近用PyMaemo写一个N800上跑的程序时用到的:
- self.mote_pixbuf = gtk.gdk.pixbuf_new_from_xpm_data(MOTE_PIXMAP)
- self.mote_gray_pixbuf = self.mote_pixbuf.copy()
- self.mote_pixbuf.saturate_and_pixelate(self.mote_gray_pixbuf, 0.0, True)

Styled with Mara's grassland
Powered by WordPress2.5.1 and K21.0-RC6
Entries Feed and Comments Feed
204 queries. 1.3260 seconds.
0 Responses to “PyGTK里取得一个xpm图标的灰度图”
Leave a Reply