- 68 名前: [―{}@{}@{}-] デフォルトの名無しさん mailto:sage [2009/02/17(火) 20:05:45 ]
- Graphics.getColorOfRGB(int,int,int)で取得されたカラーの値から、
Rだけの値、Gだけの値、Bだけの値を取り出したいのですが可能ですか? エミュレータ上では以下の方法で取り出せますが、 Graphics.getColorOfRGPで取得された値は機種依存なため、 以下のような方法は使えません。Doja-5.0を使ってます。 int color = Graphics.getColorOfRGB( 0xa0, 0x10, 0x30, 0xff ); int r = (color>>16) & 0xff; int g = (color>> 8) & 0xff; int b = (color>> 0) & 0xff;
|

|