Methods to convert pixels: x-axis