Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter small text quality
Painter small text quality [message #39752] |
Tue, 23 April 2013 12:37  |
 |
koldo
Messages: 3435 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
I would like to improve text quality using Painter for small texts.
In the image it is the same screen with Draw and Painter. The small texts in the X axis (Jan, Feb, Mar, ...) look better with Draw.

This is the code for both:
void DrawText(Draw &w, double x, double y, int angle, const String &text, Font font, Color color) {
w.DrawText(fround(x), fround(y), angle, text, font, color);
}
void DrawText(Painter &w, double x, double y, int angle, const String &text, Font font, Color color) {
w.Begin();
w.Translate(x, y).Rotate(-angle*M_PI/1800.);
w.Text(0, 0, text, font).Fill(color);
w.End();
}
Do you know how to improve the quality?
-
Attachment: Painter.png
(Size: 142.96KB, Downloaded 722 times)
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Tue May 13 11:53:18 CEST 2025
Total time taken to generate the page: 0.03509 seconds
|