Currently viewing: GipsySoft » Front Page» Articles

GetCurrentColorDepth

Get the colour depth currently in use.

UINT GetCurrentColorDepth();

Return value

Returns the number of bits per pixel.

Example

UINT u = GetCurrentColorDepth();
if( u >= 8 )
{
	//	Do high colour stuff.
}

 

Click to view the source code

See also none.