Simple question, is drawing text using functions like TextOut or DrawText better then creating a static control, performance wise?
And which has better performance TextOut or DrawText?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Second question first:
DrawTextcallsTextOut, so if you don’t need the formatting capabilities ofDrawText, you can go straight toTextOut.If raw performance is all you care about, then drawing directly will be faster. However, raw performance should not be your sole concern. It is also more work and does not support accessibility (which means you have to write additional code to support
IAccessible).