bitmap_color_depth
Returns the color depth of the specified bitmap.
Description
Returns the color depth of the specified bitmap (8, 15, 16, 24, or 32).
Example:
switch (bitmap_color_depth(screen)) {
case 8:
/* Access screen using optimized 8-bit code. */
break;
default:
/* Use generic slow functions. */
break;
}
Related Discussions
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword: