QUItCoding / qnanopainter

Library for implementing OpenGL accelerated Qt (Quick) C++ UI components.
http://quitcoding.com
Other
405 stars 79 forks source link

How to generate QNanoImage from the binary data (from socket) #52

Open Chrislu30604 opened 4 years ago

Chrislu30604 commented 4 years ago

I want to parse the image from the socket and render it on GUI by qnanopainter to improve the performance (QPainter is too slow). Is there anyway to do that ?

QUItCoding commented 4 years ago

QNanoPainter QNanoImage doesn't contain API to load image from data, just from image file or FBO. But NanoVG contains e.g. nvgCreateImageMem and nvgCreateImageRGBA so adding this into QNanoPainter would be possible, patches welcome! =)