parameters: (camera, directory)
docstring: Take a screenshot without alpha and crop.
docstring_summary: Take a screenshot without alpha and crop.
docstring_tokens: Take a screenshot without alpha and crop .
function: def take_original_screenshot(camera, directory):
      """Take a screenshot without alpha and crop."""
      image = camera.getImage()
      pilImage = Image.frombytes('RGBA', (camera.getWidth(), camera.getHeight()), image, 'raw', 'BGRA')
      pilImage.save(os.path.join(directory, 'original.png'))
function_tokens: def take_original_screenshot ( camera , directory ) : image = camera . getImage ( ) pilImage = Image . frombytes ( 'RGBA' , ( camera . getWidth ( ) , camera . getHeight ( ) ) , image , 'raw' , 'BGRA' ) pilImage . save ( os . path . join ( directory , 'original.png' ) )