How do I take a screenshot of my Android phone?

I recently got myself an HTC Magic running Android and wondered if there’s a way I can take a screenshot of what’s running on the display. My previous phone was a Windows Smartphone and I had an application that did that for me. Is there a simple way to do this on my Android?