##// END OF EJS Templates
added QImage constructor from uchar*...
florianlink -
r177:1a39bae1bd69
parent child
Show More
@@ -1253,7 +1253,14
1253 1253 </conversion-rule>
1254 1254 </modify-argument>
1255 1255 </modify-function>
1256
1256 <inject-code class="pywrap-h">
1257 QImage* new_QImage( const uchar * data, int width, int height, QImage::Format format )
1258 {
1259 QImage* image = new QImage(width, height, format);
1260 memcpy(image-&gt;bits(), data, image-&gt;byteCount());
1261 return image;
1262 }
1263 </inject-code>
1257 1264 </value-type>
1258 1265
1259 1266 <value-type name="QColormap" delete-in-main-thread="yes">
General Comments 0
You need to be logged in to leave comments. Login now