TEXTOUT_P : width ?
|
10-03-2015, 07:45 PM
Post: #6
|
|||
|
|||
RE: TEXTOUT_P : width ?
This is the fastest way I found to calculacte the width and height of the text.
The following functions should take less than 2ms. Width: Code: TEXTW_P(t,s) Height: Code: TEXTH_P(t,s) as before: t - text for check the width or height s - font size (0 = default from Home settings) During the performance tests when I created this solution I think I detected a bug (very little) in the function TEXTOUT_P, but I will write about this in a separate thread. Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
TEXTOUT_P : width ? - primer - 10-02-2015, 08:41 AM
RE: TEXTOUT_P : width ? - xset - 10-02-2015, 09:17 AM
RE: TEXTOUT_P : width ? - komame - 10-02-2015, 12:51 PM
RE: TEXTOUT_P : width ? - komame - 10-03-2015, 08:56 AM
RE: TEXTOUT_P : width ? - eried - 10-03-2015, 05:42 PM
RE: TEXTOUT_P : width ? - komame - 10-03-2015 07:45 PM
RE: TEXTOUT_P : width ? - komame - 10-04-2015, 04:21 PM
RE: TEXTOUT_P : width ? - primer - 10-05-2015, 03:04 PM
RE: TEXTOUT_P : width ? - Tyann - 10-12-2015, 11:58 AM
RE: TEXTOUT_P : width ? - hpfx - 10-14-2015, 10:02 PM
|
User(s) browsing this thread: 1 Guest(s)