electronic project:
http://grizz.pl/mirlight
http://mirley.firlej.org/blog_mirlight
and git sourses:
http://github.com/grizz-pl/mirlight
the problem is that now project get color info by Qt:
Code: Select all
def getColor(self, px, py, w, h ):
"""
Grab specific field and resize it to receive average color of field
@return a color value
"""
self.originalPixmap = QtGui.QPixmap.grabWindow(QtGui.QApplication.desktop().winId(), px, py, w, h)
self.destPixmap = self.originalPixmap.scaled(1, 1, QtCore.Qt.IgnoreAspectRatio, QtCore.Qt.SmoothTransformation)
self.destImage = self.destPixmap.toImage()
value = self.destImage.pixel(0,0)
return value
On our forums are talented people - doing magical things with the image memory
