title: How do I blit a PNG with some transparency onto a surface in Pygame?
body: <p>I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code:</p>
  
  <pre><code>screen = pygame.display.set_mode((800, 600), pygame.DOUBLEBUF, 32)
  
  world = pygame.Surface((800, 600), pygame.SRCALPHA, 32)
  treeImage = pygame.image.load("tree.png")
  
  world.blit(treeImage, (0,0), (0,0,64,64))
  screen.blit(world, pygame.rect.Rect(0,0, 800, 600))
  </code></pre>
  
  <p>What do I have to do to solve the problem?
  The image has alpha transparency, I've opened it up in PhotoShop and the background turns transparent, not black or white or any other color.</p>
  
  <p>Thank you for your support :)</p>