Searched defs:luminance (Results 1 - 1 of 1) sorted by relevance

/inkscape/src/display/
H A Dgrayscale.cpp42 * by outputing blue+1 or red+1 or both. The luminance is calculated
50 guint32 luminance = ( red_factor * (r << 3) local
53 unsigned blue_plus_one = (luminance & 0x01) ? 1 : 0;
54 unsigned red_plus_one = (luminance & 0x02) ? 1 : 0;
55 unsigned green_plus_one = (luminance & 0x04) ? 1 : 0;
56 luminance = luminance >> 3;
58 if (luminance >= 0xff) {
61 return SP_RGBA32_U_COMPOSE(luminance + red_plus_one, luminance
65 unsigned char luminance(unsigned char r, unsigned char g, unsigned char b) { function in namespace:Grayscale
66 guint32 luminance = ( red_factor * r local
[all...]

Completed in 1080 milliseconds