Java Color Decode decodeColor(int value)

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

Description

decode Color

License

Open Source License

Declaration

public static Color decodeColor(int value) 

Method Source Code


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

import java.awt.Color;

public class Main {
    public static Color decodeColor(int value) {
        return new Color((int) (value & 0xFF0000) >> 16, (int) (value & 0xFF00) >> 8, (int) value & 0xFF,
                (int) (((long) value & 0xFF000000L) >> 24));
    }//  w  w  w .j  ava  2  s. c om
}

Related

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