Hour 5. Drawing Bitmaps

What You’ll Learn in This Hour:

Adding a bitmap file to the project

Loading a bitmap

Drawing a bitmap

Transparency

This hour will dig into one of the most vital subjects of game programming: bitmaps. A bitmap is a 2D image, also known as a texture in the realm of 3D programming. Bitmap images can be created in memory, but they are more often loaded from an existing bitmap file. The most common file types are BMP, PNG, and JPG. For games, we want high-quality bitmaps without lossy compression (in which pixels are changed to shrink the file size). The BMP format does work well but it has fallen out of favor in recent years due to format incompatibilities (such as some BMP files supporting an alpha channel, and some ...

Get Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.