The file that you use should be a solid image on a transparent background. The bitmap image is expected to be a true bitmap that has transparent pixels and non-transparent pixels. The recommended format is PNG. Other file-format image sources will load but result in a solid block of the foreground color. Caution: Resizing bitmaps at runtime might hurt application performance and result in blurry images. Consider using fixed-size images where possible.