public Background(Archive streamLoader, String s, int i) {
		Buffer stream = new Buffer(streamLoader.decompressFile(s + ".dat"));
		Buffer stream_1 = new Buffer(streamLoader.decompressFile("index.dat"));
		stream_1.position = stream.getUnsignedLEShort();
		libWidth = stream_1.getUnsignedLEShort();
		anInt1457 = stream_1.getUnsignedLEShort();
		int j = stream_1.getUnsignedByte();
		palette = new int[j];
		for (int k = 0; k < j - 1; k++)
			palette[k + 1] = stream_1.get3Bytes();

		for (int l = 0; l < i; l++) {
			stream_1.position += 2;
			stream.position += stream_1.getUnsignedLEShort()
					* stream_1.getUnsignedLEShort();
			stream_1.position++;
		}

		drawOffsetX = stream_1.getUnsignedByte();
		drawOffsetY = stream_1.getUnsignedByte();
		imageWidth = stream_1.getUnsignedLEShort();
		imageHeight = stream_1.getUnsignedLEShort();
		int i1 = stream_1.getUnsignedByte();
		int j1 = imageWidth * imageHeight;
		imagePixels = new byte[j1];
		if (i1 == 0) {
			for (int k1 = 0; k1 < j1; k1++)
				imagePixels[k1] = stream.get();

			return;
		}
		if (i1 == 1) {
			for (int l1 = 0; l1 < imageWidth; l1++) {
				for (int i2 = 0; i2 < imageHeight; i2++)
					imagePixels[l1 + i2 * imageWidth] = stream.get();

			}

		}
	}