Java RGB Color Create toRGBAArray(int colorBuffer)

Here you can find the source of toRGBAArray(int colorBuffer)

Description

to RGBA Array

License

Open Source License

Declaration

public static int[] toRGBAArray(int colorBuffer) 

Method Source Code

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

public class Main {
    public static int[] toRGBAArray(int colorBuffer) {
        return new int[] { (colorBuffer >> 16 & 255), (colorBuffer >> 8 & 255), (colorBuffer & 255),
                (colorBuffer >> 24 & 255) };
    }//from  w ww. j  a  va 2  s  .  c om
}

Related

  1. toRGB15(int x)
  2. toRGBA(float[] colors)
  3. toRGBA(int argb)
  4. toRGBA(int color)
  5. toRGBA(String hexARGB)
  6. toRGBAIntArray(long argb)
  7. toRgbText(int rgb)