Yes, you could encode the image.Image to []byte (in png or some other image format) and use the encoded data to create a QByteArray, which then can be used to create a QImage. The QImage can then be used to edit the image or to create a QPixmap, which can be displayed inside a QGraphicScene, QLabel, ... I played around with something like that last week and created an example, maybe this is the part that interest you: https://github.com/therecipe/qt/blob/master/internal/examples/widgets/renderer/renderer.go#L145-L187
And here are some infos about the different classes that Qt provides to work with image data http://doc.qt.io/qt-5/qpixmap.html#details Am Mittwoch, 16. November 2016 01:53:08 UTC+1 schrieb howar...@gmail.com: > > therecipe, is there a means available to render image.Image or draw.Image > (go Image) objects to Qt images/buffers/etc? > > I was not able to locate such a facility in several other libraries. In > the end I got fed up and wrote my own for converting a draw.Image to a > GdkPixBuf to get gtk2 and gotk3 working. Is there a similar raw in-memory > image format for Qt that is accessible in a way I could manually create it > from an image.Image? (In other words, one where the raw bytes are > accessible for setting, as an array, etc?) > > Howad > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.