最近用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)
wolfg's journey with open source, linux, programming, sysadm …
0 Responses to “PyGTK里取得一个xpm图标的灰度图”