drawPosText() in android.graphics.Canvas, What is origin?

Posted by vladikoff on Stack Overflow See other posts from Stack Overflow or by vladikoff
Published on 2010-03-15T15:07:48Z Indexed on 2010/03/15 15:09 UTC
Read the original article Hit count: 362

Filed under:

drawPosText(char[] text, int index, int count, float[] pos, Paint paint) Draw the text in the array, with each character's origin specified by the pos array.

Does anyone know where exactly does drawPosText consider the "origin" to be, since you are specifying "origin" as coordinate pairs; i.e., is it bottom-left of character, center, what?

Also how does drawPosText calculate character height when it draws?

© Stack Overflow or respective owner

Related posts about android