Login  Register

Get pixel Coordinates

Posted by elseine on Apr 19, 2016; 5:01pm
URL: https://forum.jogamp.org/Get-pixel-Coordinates-tp4036625.html

Hello everybody.

I have a project where I am doing a simple graph. I have boxes and splines (Bezier curves) in it. Inside each box I need to put some text. I try with TextRenderer but uses pixel coordinates instead of canvas coordinates.

I am thinking in get the canvas coordinates for each box, and use it to put the text correctly.

How can I get the pixel coordinates from an object that I draw?

Thanks for your time!