Define the line other coordinates
This functions modifies also the line width and height
this
the x length from getX in pixels
the x length from getY in pixels