1. A method of processing a region that contains image data, the method comprising: accessing metadata associated with the region, the metadata indicating a type of graphics command that was used to generate or modify the image data; determining whether the type of graphics command satisfies at least one predetermined criterion; and if the type of graphics command satisfies the at least one predetermined criterion, choosing a compression algorithm for the region without regard to the content of the image data itself.