GRADIENT_FLAG_GRAYS
gradientFlags |= GRADIENT_FLAG_GRAYS;
bool gray = gradientFlags & GRADIENT_FLAG_GRAYS;