Graphics coordinates vs Pixels coordinates
|
03-19-2019, 11:57 AM
Post: #1
|
|||
|
|||
Graphics coordinates vs Pixels coordinates
To draw an ARC, the radius is given in PIXEL, not in graphical units. So when making some drawing I observe some peculiar behaviour. If the graphical units are not well defined, you always got a "visual circle" but in fact an "ellipse" in term of graphical units.
The following program try to draw a circle with ARC and the same circle with SIN&COS+LINE. Code: #pragma mode(separator(.,;) integer(h32)) Code: Xmin:=-16.0;Xmax:=16.0; Code: Xmin:=-15.9;Xmax:=15.9; My question is the following, are those differences explained somewhere in the manual ? I thinks that the graphical units do not use the full vertical size of the screen (to keep some space to draw the menus ?) It seem ok to do so, but for ARC vs ARC_P with the radius given in PIXELS and not in graphical units there is some discrepancy. In fact ARC_P should always give a perfect circle. But ARC should use a radius in graphical units and could result in drawing an ellipse if graphical units are not rectangular. This will be more consistent. (And easier to deal with as using C->PX and PX->C to deal with distance is not very friendly). Olivier |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Graphics coordinates vs Pixels coordinates - Oulan - 03-19-2019 11:57 AM
RE: Graphics coordinates vs Pixels coordinates - Carlos295pz - 03-20-2019, 01:45 AM
RE: Graphics coordinates vs Pixels coordinates - cyrille de brébisson - 03-20-2019, 06:13 AM
RE: Graphics coordinates vs Pixels coordinates - Carlos295pz - 03-20-2019, 06:27 AM
|
User(s) browsing this thread: 1 Guest(s)