Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common RGB formats of java

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the common RGB formats of java?". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The book follows the above, the last time a brief introduction to the common YUV sampling format, for the final display, more is the use of RGB mode, this issue will take you to see the common RGB format. The color presented in front of us by any computer equipment and intelligent terminal is actually a different combination of red, green and blue. RGB is actually a combination of three primary colors, and different formats are essentially different storage and representation methods for each monochrome.

RGB565:

16 bit for one pixel, 5 bit for R (red), 6 bit for G (green), and 5 bit for B (blue), arranged from high to low as follows:

R R R R R G G G G G G B B B B B

RGB555:

A pixel is represented by 16 bit, of which the highest bit is not used. R (red), G (green) and B (blue) are all represented by 5 bit, arranged from high to low as follows:

X R R R R R G G G G G B B B B B

RGB24:

One pixel is represented by 24 bit, and R (red), G (green) and B (blue) are all represented by 8 bit, arranged from high to low as follows:

R R R R R R R R G G G G G G G G B B B B B B B B

RGB32 (RGB32):

One pixel is represented by 32 bit, R (red), G (green), B (blue) are all represented by 8 bit, and then 8 bit are used to represent alpha (transparency), arranged from high to low as follows:

B B B B B B B B G G G G G G G G R R R R R R R R An An An An An An An A

This is the end of the content of "what are the common RGB formats of java". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report