public int[] getRGBData(MemBuffer buf) {
		byte[] rawCmap = new byte[this.getColorMapLength()];
		if (buf.getBytes(rawCmap, size) != rawCmap.length) {
			return new int[0];
		}

		int[] cmap = new int[getClrUsed()];
		for (int i = 0; i < cmap.length; i++) {
			cmap[i] = (rawCmap[i * 4 + 2] & 0xff) << 16;
			cmap[i] += ((rawCmap[i * 4 + 1]) & 0xff) << 8;
			cmap[i] += ((rawCmap[i * 4 + 0]) & 0xff);
		}
		return cmap;
	}
Compute the uncompressed image data size for a single line based upon getWidth() and
getBitCount().
@return computed image data size for single line
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/BitmapResource.java