onbon.bx06.utils
类 ColorType565

java.lang.Object
  继承者 onbon.bx06.utils.ColorType565

public class ColorType565
extends Object

全彩色碼轉換程式。

作者:
ONBON

方法摘要
static Color decode(int code)
          將色碼轉換成顏色。
static int encode(Color color)
          將顏色轉換成色碼。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

decode

public static Color decode(int code)
將色碼轉換成顏色。

参数:
code - 色碼。有效範圍 0x0000 - 0xffff。
返回:
顏色。

encode

public static int encode(Color color)
將顏色轉換成色碼。

参数:
color - 顏色。
返回:
色碼。


Copyright © 2018 onbon. All rights reserved.