Here you can find the source of convertIntColourToByteArray(int intColour)
public static byte[] convertIntColourToByteArray(int intColour)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] convertIntColourToByteArray(int intColour) { byte[] colourByteArray = new byte[3]; colourByteArray[0] = (byte) (intColour >> 16 & 255); colourByteArray[1] = (byte) (intColour >> 8 & 255); colourByteArray[2] = (byte) (intColour & 255); return colourByteArray; }// w w w .j a va 2s .com }