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
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