DNASkittle is a web based genome browser that provides an interactive visualization of the raw sequence. Every nucleotide of 10Kbp can fit on one screen at a time. It makes heavy use of signal processing techniques to extract tandem repeats, and other genome elements.
Instead of calculating the total height, which needs padding. Calculate the ratio between the charactersperline of the image you're displaying and the current charactersperline. Scale vertically based on this ratio.
Instead of calculating the total height, which needs padding. Calculate the ratio between the charactersperline of the image you're displaying and the current charactersperline. Scale vertically based on this ratio.