Here you can find the source of byte2int2(byte[] src, int height, int width)
public static int[] byte2int2(byte[] src, int height, int width)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] byte2int2(byte[] src, int height, int width) { int dstLength = src.length; int[] dst = new int[dstLength]; for (int i = 0; i < height * width; i++) { Byte b = new Byte(src[i]); dst[i] = b.intValue() & 0x000000ff; }/*from w ww. j av a2 s .co m*/ return dst; } }