I'm trying to get the XY coordinates of the pixels in a string in Java, but I can't figure out how.
I'll try to explain more clearly.
Let's say I want to do something like this:
paint.setTextSize(40);
canvas.drawText("hello", 100, 100, paint);
But instead of actually drawing that text, I want a list of coordinates corresponding to all the pixels that would be in that text, which can be relative to the beginning of the text or the canvas, doesn't matter.
Is this at all possible? Can't find anything about it with Google.
Thanks.