Which is faster? getCharBoundaries or getLineMetrics
hi,
i need hold of vertical position , height of text character. possible using textfield.getcharboundaries() method rather slow have looked other possibilities. 1 way hold of line index of character textfield.getlineindexofchar() , iterate on text lines , examine heights using textfield.getlinemetrics().
what ask if can expect increased efficiency using second method compared first.
i of course interested in other ways hold of same information.
i need hold of vertical position , height of text character. possible using textfield.getcharboundaries() method rather slow have looked other possibilities. 1 way hold of line index of character textfield.getlineindexofchar() , iterate on text lines , examine heights using textfield.getlinemetrics().
what ask if can expect increased efficiency using second method compared first.
i of course interested in other ways hold of same information.
ok quick update:
i have done tests our application , result when using getlinemetrics() instead of getcharboundaries() cut in processing time >99%.
i have done tests our application , result when using getlinemetrics() instead of getcharboundaries() cut in processing time >99%.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment