onbon.bx06.utils
Class ColorType565

java.lang.Object
  extended by onbon.bx06.utils.ColorType565

public class ColorType565
extends Object

全彩色碼轉換程式。

Author:
ONBON

Method Summary
static Color decode(int code)
          將色碼轉換成顏色。
static int encode(Color color)
          將顏色轉換成色碼。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

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

Parameters:
code - 色碼。有效範圍 0x0000 - 0xffff。
Returns:
顏色。

encode

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

Parameters:
color - 顏色。
Returns:
色碼。


Copyright © 2020 onbon. All rights reserved.