Original: http://www.cnblogs.com/carekee/articles/3629964.html
First, the basicFor color turn grayscale, there is a well-known psychological formula:
Gray = r*0.299 + g*0.587 + b*0.114
Second, integer algorithm
In practical applications, it is desirable to avoid low-speed floating-point operations, so integer arithmetic is required.Note that the coefficients are all 3-bit accurate, and we can scale them up
255, and because different bits have different brightness levels, the specific values of Y are as follows:
Y = y/(1
Finally, it is important to note that the Y-value is stored in a different way, with the corresponding number of digits to store the corresponding Y-value.
//----------------------------------------------------------RGB565 Turn 8-bit grayscale//----------------------------------------------------------TUint8 Gm_red,gm_green,gm_blue;TInt16 *des_ptr;TInt16 *pt;PT = (TInt16 *) P8; RG
255, and because different bits have different brightness levels, the specific values of Y are as follows:
Y = y/(1
Finally, it is important to note that the Y-value is stored in a different way, with the corresponding number of digits to store the corresponding Y-value.
//----------------------------------------------------------RGB565 Turn 8-bit grayscale//----------------------------------------------------------TUint8 Gm_red,gm_green,gm_blue;TInt16 *des_ptr;TInt16 *pt;PT = (TInt16 *) P8; RG
the formula, which is actually the level of brightness, brightness from 0 to 255, because different bits have different luminance levels, so the specific value of Y is as follows:Y = y/(1The last point to note is that the Y value is stored differently, and the corresponding Y value is saved with the corresponding number of digits.//----------------------------------------------------------RGB565 Turn 8-bit grayscale//----------------------------------------------------------TUint8 Gm_red,gm_gre
, which has been widely used on the web, in addition, there are GIF, PNG, and so on. The second is that when bitmap is enlarged, it is inevitable that the bitmap will appear "sawtooth", which is also determined by the essential characteristics of the bitmap. Therefore, in reality, we also need to use another image format: vector image. Different from bitmap, a vector chart is different from a bitmap. A vector char
Why is it called pseudo high ash? Because I did not learn to draw, did not learn color, just like the fine art works in the kind of strong subtle and not gaudy color, according to the feeling of imitation out of this strictly not called high-grade gray tones, but also the pursuit of a gray-scale transition rich and not
.
Figure I: Simple 12 pure color and black white mark
The following (Fig. II) is the pattern used for testing.
Production method: Color Picker, HSB mode (hue ring), s=100 b=85 h=0°,30°,60°,90°,120° ... 330° Attention, here b=85, the lightness drop.
Figure II
Start the test. In PS, copy the figure two to a layer, and set to filter, transparency 100%, and then copy a layer, and th
of brightness, brightness from 0 to 255, because different bits have different luminance levels, so the specific value of Y is as follows:Y = y/(1The last point to note is that the Y value is stored differently, and the corresponding Y value is saved with the corresponding number of digits.//----------------------------------------------------------RGB565 Turn 8-bit grayscale//----------------------------------------------------------TUint8 Gm_red,gm_green,gm_blue;TInt16 *des_ptr;TInt16 *pt;PT
The other RGB color chart
Have a great time creating your HTML pages with great colors!
Please send a message to me if you have any questions
Whites/pastels-grays-blues-greens-yellows-Browns-oranges-Pinks/violetsWhites/pastels
Color name
RGB code
Hex #
Sample
Snow
255-250-250
Fffafa
Snow 2
238-233-233
Eee9e9
Photoshop Tutorial: Modulated color Light effect chart
Last week, as usual, I was waiting to register at the airport, and a banner logo caught my attention, a Sony phone ad called Xperia. What really caught my attention was the wallpaper of my cell phone. This is a colorful light that crosses the screen. I really liked the effect, so I wrote this tutorial. -The above is the author language. I'm glad this
How does ppt mosaic false chart with color block?
1. Create a new blank document first
2, select the shape, "pie-shaped"
3, hold down the SHIFT key to draw a pie, see that yellow endpoint? By moving it, you can adjust the pie shape to whatever shapes you want.
4. Change to Gray, set in shape
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.