Java Integer Convert To convertIntColourToByteArray(int intColour)

Here you can find the source of convertIntColourToByteArray(int intColour)

Description

convert Int Colour To Byte Array

License

Open Source License

Declaration

public static byte[] convertIntColourToByteArray(int intColour) 

Method Source Code

//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
}

Related

  1. convertInt8(int v)
  2. convertIntArray(int[] arr)
  3. convertIntArray(int[] in)
  4. convertIntArrayFromHex(char[] hex)
  5. convertIntBitsMSBinaryToIEEE(int source)
  6. convertIntDouble(int[][] in)
  7. convertInteger(String input, int maxLen)
  8. convertInteger(String str)
  9. convertIntegerArrayToInt(Integer[] integerArray)