How To Slice A WordPress Theme is part two of my e-book on how to create a WordPress theme from scratch. (Check out part one.) It shows you how to merge all layers and save the areas that you want to use as images.
In related news: Part 1, How to Design a WordPress Theme, has been updated.