private int[] membukabit_toarray(int[][] masuk,int parameter, int[] arrayRGB) {

        int inisialisasi=parameter;

        for (int i = 0; i < masuk.length; i++) {
            for (int j = 0; j < masuk.length; j++,inisialisasi++) {
                arrayRGB[inisialisasi]=masuk[i][j];
            }
        }

        return arrayRGB;
    }