Re: PyQt save an qgraphicsview Programming Software Development by woooee QImage has a save function. See "Reading and Writing Image Files" [URL=http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qimage.html]here[/URL] How to integrate QImage with boost::gil? Programming Software Development by stereomatching …x_gradient(src, dst); } static inline void x_gradient_qt(QImage const &src, QImage &dst) { ComputeXGradientGray8(src.bits(), src.bytesPerLine…segmentation fault } #endif // EXAMPLE_HPP depth : 8bit format : QImage::Format_Indexed8 image width : 450 image height : 375 bytes per … Re: How to integrate QImage with boost::gil? Programming Software Development by stereomatching …QWidget> static std::unique_ptr<T> view_image_pair(QImage const &src, QImage &dst) { std::unique_ptr<T> window…static void read_image(QApplication &a) { QImage src("../GIL_with_Qt/images_00/coneL.bmp"); QImage dst(src.size(), src.format()); std::unique_ptr… PyQt4 - python-djvulibre problem Programming Software Development by britanicus …renders a page of a DjVu document into QImage class of PyQt4. import djvu.decode as… DjVu from PyQt4.QtCore import QImage from PyQt4.QtGui import QPixmap, QApplication, QLabel … data[ 1 ], data[ 0 ][ 0 ], data[ 0 ][ 1 ], QImage.Format_RGB32 ) image.save( "/tmp/image.png" ) return QPixmap… Re: PyQt4 - python-djvulibre problem Programming Software Development by Ene Uran … help: import djvu.decode as DjVu from PyQt4.QtCore import QImage from PyQt4.QtGui import QPixmap, QApplication, QLabel def djvu2pixmap( … ) ) image = QIamge( data[ 1 ], data[ 0 ][ 0 ], data[ 0 ][ 1 ], QImage.Format_RGB32 ) image.save( "/tmp/image.png" ) return QPixmap… Re: PyQt4 - python-djvulibre problem Programming Software Development by britanicus … `from PyQt4.QtGui import QPixmap, QApplication, QLabel, QImage`, Line 11 `QIamge` should be `QImage` and Line 22 should be `lbl.setPixmap( djvu2pixmap… Need help: On PyQt4 how to determine pixel coord. at mouse clic on 2 diff. ScrollArea Programming Software Development by patkeraudren …super(MainWindow, self).__init__(parent) self.pLabel = None self.Img = QImage() self.ImgPt = [0,0] self.GlobPt = [0,0]…() + '/' + '2.jpg') def imageLoad(self, fname): image = QImage(fname) if image.isNull(): message = "Failed to read {0… Circular Progress Bar using PySide Digital Media UI / UX Design by vijayakumar_1 …(1, 1, outerRadius-2, outerRadius-2) buffer = QtGui.QImage(outerRadius, outerRadius, QtGui.QImage.Format_ARGB32) buffer.fill(0) p = QtGui.QPainter(buffer) p… Re: PyQt save an qgraphicsview Programming Software Development by pdini Hi Woooee, thanks for you answer! I saw that I could save a QImage, but my problem is: how to transfer all my items into a QImage from my qgraphicsview or qgraphicsscene. Any idea? Thanks Patrick Opening BMP 16bit 565 files created from GIMP Programming Software Development by sebcbien ….xsize,self.ysize) = self.getSize(self.imagepath) self.image = QtGui.QImage(str(self.imagepath)) self.label.setGeometry(10, 10,int(self… PyQt save an qgraphicsview Programming Software Development by pdini … couldn't find any example of this. Should I use QImage or something like this? Thank you Patrick Re: PyQt save an qgraphicsview Programming Software Development by woooee … of the view onto a paint device, such as a QImage (e.g., to take a screenshot), or for printing to… fast numpy array transform (image to grayscale) Programming Software Development by Michael_Levin … you please help me with fast numpy transform. i have qimage (argb32) converted to numpy, so it's now an array… QPainter error when trying to output QGraphicsView as image Programming Software Development by rogersjw …,dir=None): if dir == None: dir = os.getcwd() img = QtGui.QImage(self.size()) print img.isNull() # This == True painter = QtGui.QPainter… need serious help setting up images height width in QTableView Programming Software Development by krystosan …(400,300, QtCore.Qt.KeepAspectRatio) pixmap.load(value) return QtGui.QImage(pixmap).scaled(120,100) if index.isValid() and role == QtCore… opencv with qt using c++ Programming Software Development by ravi_14 …), ui(new Ui::Widget) { ui->setupUi(this); IplImage *in; QImage imp; in=cvLoadImage("F:/test.jpg"); cv::VideoCapture… Re: QT signal to change the GUI out side the main thread Programming Software Development by nabla2 …updateUi) self.connect(self.thread, SIGNAL("output(QRect, QImage)"), self.addImage) self.connect(self.startButton, SIGNAL("…self.path) painter.end() self.emit(SIGNAL("output(QRect, QImage)"), QRect(x - self.outerRadius, y - self.outerRadius… Re: Display Image Programming Software Development by ravenous …, then you'll need a more sophisticated approach, using [icode]QImage[/icode] from the Qt library, for example. What is your… Re: Python GUI Programming Programming Software Development by HiHe … = QGraphicsScene(self) self.scene.setSceneRect(0, 0, 800, 500) loaded_image = QImage() # pick an image file you have in the working folder… Re: Python GUI Programming Programming Software Development by vegaseat … # a painting program like GIMP (http://www.gimp.org/) image = QImage('blank640x480.png') paint = QPainter() # the paint canvas is the blank… Re: Python GUI Programming Programming Software Development by vegaseat … path image_file = "../image/PorscheBoxster.jpg" imageLabel = QLabel() image = QImage(image_file) imageLabel.setPixmap(QPixmap.fromImage(image)) scrollArea = QScrollArea() scrollArea.setBackgroundRole… Re: How to integrate QImage with boost::gil? Programming Software Development by stereomatching Sorry, I solved the problem by myself I forgot to measure the value of src(x - 1, y) and src(x + 1, y) GIL makes the manipulation of pixels become much more easier Thanks Re: PyQt4 - python-djvulibre problem Programming Software Development by Ene Uran To test out your program and possible help you, I installed python-djvulibre-0.3.4.win32-py2.7.exe from http://pypi.python.org/pypi/python-djvulibre/0.3.4 This works: import djvu help(djvu) '''output --> Help on package djvu: NAME djvu FILE c:\python27\lib\site-packages\djvu\… Re: PyQt4 - python-djvulibre problem Programming Software Development by Ene Uran I normally use: from PyQt4.QtCore import * from PyQt4.QtGui import * to make life simpler Re: Opening BMP 16bit 565 files created from GIMP Programming Software Development by Beat_Slayer With a simple hex editor you can see that the GIMP file headers are completely different. Cheers and happy coding Re: Opening BMP 16bit 565 files created from GIMP Programming Software Development by sebcbien Well I've actually check this before posting and I've seen that the headers were quite different. Does this mean I'm gonna have to create a homemade reader and decoder? I wish I could find an other way... Re: PyQt save an qgraphicsview Programming Software Development by pdini It works perfectly with the render method of QGraphicsScene. Thank you very much Woooee, it helped me very much! See you Patrick Re: fast numpy array transform (image to grayscale) Programming Software Development by TrustyTony Best algorithm for this is normally: [code]Select set of test cases While test cases do not pass Do next part of solution Solve test cases Debug While too slow See if you can use c-coded functions to produce same solutions for test cases. Profile [/code] Re: QPainter error when trying to output QGraphicsView as image Programming Software Development by rogersjw Any ideas? Need more information? Re: opencv with qt using c++ Programming Software Development by Ancient Dragon Most likely the problem is compiler mangling names. c++ compilers change function names so that they can be overriden, while c compilers do not because c does not support overiding functions. The most common way to prevent name mangling is like this #ifdef __cplusplus extern c { #endif #include "widget.h" #include…