Hi all,<br>I have to bother you again....Run this script:<br><br>#coding = utf-8<br># file_name = test2.py<br>from PyQt4 import QtCore, QtGui<br><br>im = QtGui.QImage(3, 3, QtGui.QImage.Format_Indexed8)<br><br>print QtGui.qRgb(0, 0, 0), QtGui.qRgb(255, 255, 255), QtGui.qRgb(255, 0, 0)<br>
<br>b = QtGui.qRgb(0, 0, 0)<br>w = QtGui.qRgb(255, 255, 255)<br>r = QtGui.qRgb(255, 0, 0)<br>im.setColorTable([b, w, r])<br><br>print im.colorTable()<br>print&nbsp; b, w, r<br clear="all"><br>I got:<br>bash-3.1$ python test2.py<br>
4278190080 4294967295 4294901760<br>[-1, -1, -1]<br>4278190080 4294967295 4294901760<br>bash-3.1$ <br><br>So, how to use the QtGui.QImage.setColorTable()? Thanks in advance ;)<br>-- <br>Cheers,<br>Grissiom