IconEditor/IconEditorGrid.py

changeset 677
d53431b38d86
parent 619
52f88b8fe8b2
child 723
49ef401db2ce
equal deleted inserted replaced
676:6771da84fb0c 677:d53431b38d86
546 if opaque: 546 if opaque:
547 painter = QPainter(self.__image) 547 painter = QPainter(self.__image)
548 painter.setPen(self.penColor()) 548 painter.setPen(self.penColor())
549 painter.setCompositionMode(self.__compositingMode) 549 painter.setCompositionMode(self.__compositingMode)
550 painter.drawPoint(i, j) 550 painter.drawPoint(i, j)
551 ## if opaque:
552 ## self.__image.setPixel(i, j, self.penColor().rgba())
553 else: 551 else:
554 self.__image.setPixel(i, j, qRgba(0, 0, 0, 0)) 552 self.__image.setPixel(i, j, qRgba(0, 0, 0, 0))
555 self.__lastPos = (i, j) 553 self.__lastPos = (i, j)
556 554
557 self.update(self.__pixelRect(i, j)) 555 self.update(self.__pixelRect(i, j))

eric ide

mercurial