Q:

Is it (width, height) or (height, width)?

Is there a convention for the order of (height, width) in function arguments or when displaying dimensions?

A:

I don't know a huge number of languages, but what I have used go with (width, height). It's more fitting along the lines of (x, y) coordinates.

A:

I'd say (width, height) is overwhelmingly more common. It never hurts to make it explicit though (through argument naming, etc)

