Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Squares

Name: Jeff Atwood 2011-03-20 18:43

I have an array of N pictures, each with dimensions WxH. I want to display them in a rectangular matrix that is as close to a square as possible. How do I calculate the number of rows and columns?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List