Java Color Decode decodeColor(int color)

Here you can find the source of decodeColor(int color)

Description

decode Color

License

Open Source License

Declaration

public static Color decodeColor(int color) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.*;

public class Main {
    public static Color decodeColor(int color) {
        return new Color(color, color > 0xFFFFFF);
    }// ww  w.  j  a  v a2s.c  o  m
}

Related

  1. decode(String color)
  2. decodeColor(final double v)
  3. decodeColor(final String value)
  4. decodeColor(int value)
  5. decodeColor(String color, Color defaultColor)
  6. decodeColor(String string)
  7. decodeColor(String value, Color dflt)