SRGraphComponent::CreateAutoBrush

BOOL SRGraphComponent::CreateAutoBrush(int key, int nColorRange)

Initializes the m_AutoBrush member with a brush style according to the key value
See the How automatic colors and fills are chosen topic for details

Defined in: SRGComp.cpp

Return Value

Success or failure reported by the CBrush::CreateSolidBrush(..) or CBrush::CreateHatchBrush(..) function

Parameters

key

Key value

nColorRange

The color range. New to v 1.3. Set a range of 16 to use the standard color system. Other values will divide the spectrum by the color range and extract a suitable color from the key value. The color range works best when it is expressed as a binary number with only one bit set. (ie 32, 64, 128 etc) but this is not absolutely necessary.