I want to draw a Line with gDrawLine ().
What I would like to make, it is from coordinates such as A (0,2) and B (6,9), to ask gDrawLine to draw me this right with these coordinates. However, gDrawLine use a system of pixel to represent it.
As a result, for what I try to make, it is to create a function xToPixel, yToPixel so that the right coordinates A and B displays well in my window.
In a way, that my Line is proportional in my JFrame
Tracks? Thanks you