code: def redefineBuffer(self, newBuffer ):
          
          # Redefine Frame from an image object
          if type(self._buffer) == type(newBuffer):
              self._buffer = newBuffer
              self.Canvas = ImageDraw.Draw( self._buffer )
  #             self.View.resize(newBuffer.width, newBuffer.height)
              return True
  
          # Redefine Frame from an <PIL.ImageFile.ImageFile>
          if type(newBuffer).__name__.find(PIL.ImageFile.ImageFile.__name__) != -1:        
              self._buffer = self._buffer.resize((newBuffer.width, newBuffer.height))
              self._buffer.paste( newBuffer, (0,0))
  #             self.View.resize(newBuffer.width, newBuffer.height)
              return True
  
          # Recreated a new frame from dict of frame
          if isinstance(newBuffer, dict):
              self._buffer = Image.new( newBuffer["color_mode"] , newBuffer["size"] )
              self.Canvas = ImageDraw.Draw( self._buffer )
              return True
          pass
docs: !
          \~english 
          Redefine frame of Screen
          @param newFrame: a new fram data
          @note
              newFrame can be:
              * PIL Image
              * PIL ImageFile
              * Dictionary, eg. { "size":(width, height), "color_mode":"1" } or { "size":(width, height), "color_mode":"RGB" }
  
          \~chinese
          重新定义缓存数据
          @param newFrame: 新缓存数据 \n
              newFrame 可以为下面值:
              * PIL Image
              * PIL ImageFile
              * 字典, eg. { "size":(width, height), "color_mode":"1" } or { "size":(width, height), "color_mode":"RGB" }