Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行時に返される値は何ですか
画像[i]>>18 & 0x30、画像[i]>>12 & 0xc、画像[i]>>6 & 0x3
画像に
元の画像の色から 6 番目、7 番目、14 番目、15 番目、22 番目、23 番目のビットを含む数値を構築しています。つまり、24 ビット カラーから粗い 6 ビット カラーを生成しています。
例えば
000000000rrrrrrrrrggggggggbbbbbbbb
の上位ビットになります
rrbbgg