Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. python - parameter types -> return type
  2. same_dimensions: (Picture, Picture) -> Boolean
  3.        
  4. copyright:() -> Picture
  5.        
  6. >>> from PIL import Image
  7. >>> im1 = Image.new('RGBA', (10,10))
  8. >>> im2 = Image.new('RGBA', (10,10))
  9. >>> im3 = Image.new('RGBA', (15,12))
  10. >>> im1.size == im2.size
  11. True
  12. >>> im1.size == im3.size
  13. False