Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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