[−][src]Function qt_gui::q_gray_1a
pub unsafe fn q_gray_1a(rgb: c_uint) -> c_int
This is an overloaded function.
Calls C++ function: int qGray(unsigned int rgb)
.
This is an overloaded function.
Returns a gray value (0 to 255) from the given ARGB quadruplet rgb.
The gray value is calculated using the formula (R * 11 + G * 16 + B * 5)/32; the alpha-channel is ignored.