コード例 #1
0
 def get_imageBGRA(self):
     '''Render a copy of the GL window and convert to NPY array.  BGRA is
     the fastest since it native.
     '''
     fbuff = self.glWidget.grabFrameBuffer(withAlpha=True)
     arr = qimage2numpy(fbuff)
     return arr
コード例 #2
0
 def get_imageBGRA(self):
     '''Render a copy of the GL window and convert to NPY array.  BGRA is
     the fastest since it native.
     '''
     fbuff = self.glWidget.grabFrameBuffer(withAlpha=True)
     arr = qimage2numpy(fbuff)
     return arr
コード例 #3
0
 def get_imageARGB(self):
     '''Render a copy of the GL window and convert to NPY array.
     '''
     fbuff = self.glWidget.grabFrameBuffer(withAlpha=True)
     arr = qimage2numpy(fbuff)
     arr = arr[..., ::-1]
     return arr
コード例 #4
0
 def get_imageARGB(self):
     '''Render a copy of the GL window and convert to NPY array.
     '''
     fbuff = self.glWidget.grabFrameBuffer(withAlpha=True)
     arr = qimage2numpy(fbuff)
     arr = arr[..., ::-1]
     return arr