original_docstring: Converts the contents of the framebuffer to a RGB Image() instance.
  
      Returns:
        A Image() instance with mode='RGB' of the converted framebuffer.
      
docstring: Converts the contents of the framebuffer to a RGB Image() instance.
docstring_tokens: Converts the contents of the framebuffer to a RGB Image () instance .
code: def AsRGBImage(self):
      """Converts the contents of the framebuffer to a RGB Image() instance.
  
      Returns:
        A Image() instance with mode='RGB' of the converted framebuffer.
      """
      if self.depth != 24:
        raise DRMError('Unable to convert depth %s' % self.depth)
  
      return Image.fromstring(
          'RGB', (self.width, self.height), self.contents, 'raw', 'BGRX')
code_tokens: def AsRGBImage ( self ) : if self . depth != 24 : raise DRMError ( 'Unable to convert depth %s' % self . depth ) return Image . fromstring ( 'RGB' , ( self . width , self . height ) , self . contents , 'raw' , 'BGRX' )
short_docstring: Converts the contents of the framebuffer to a RGB Image() instance.
short_docstring_tokens: Converts the contents of the framebuffer to a RGB Image () instance .
comment: """Converts the contents of the framebuffer to a RGB Image() instance.
  
      Returns:
        A Image() instance with mode='RGB' of the converted framebuffer.
      """