Beispiel #1
0
 def handleBitmap(self, bitmapData: BitmapUpdateData):
     image = RDPBitmapToQtImage(
         bitmapData.width, bitmapData.heigth, bitmapData.bitsPerPixel,
         bitmapData.flags & BitmapFlags.BITMAP_COMPRESSION != 0,
         bitmapData.bitmapData)
     self.viewer.notifyImage(bitmapData.destLeft, bitmapData.destTop, image,
                             bitmapData.destRight - bitmapData.destLeft + 1,
                             bitmapData.destBottom - bitmapData.destTop + 1)
Beispiel #2
0
 def cacheBitmapV3(self, state: CacheBitmapV3):
     LOG.debug(state)
     bmp, buf = RDPBitmapToQtImage(state.width, state.height,  state.bpp, True, state.data)
     self.bitmaps.add(state.cacheId, state.cacheIndex, bmp, buf)