Search code examples
language-agnosticbitmapconventionsdimensions

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


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


Solution

  • 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.