private int getBytesPerLine() {
		int lineLen = getWidth() * getBitCount();

		if (getBitCount() == 1) {
			lineLen = lineLen / 8;
		}
		else if (getBitCount() == 4) {
			lineLen = (lineLen + 4) / 8;
		}
		else if (getBitCount() == 24) {
			lineLen = lineLen / 8;
		}
		else {
			lineLen = lineLen / 8;
		}
		if ((lineLen % 4) != 0) {
			lineLen = lineLen + (4 - (lineLen % 4));
		}
		return lineLen;
	}
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