Autor Beitrag
Neidhard von Reuental
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: So 12.03.06 12:34 
Hallo, nach meinen Informationen soll es möglich sein mit GDI+ auch Texte in Anti-Aliasing darstellen zu können.
Bis jetzt habe ich aber keine derartige Funktion/Einstellung gefunden.
Hat einer eine Ahnung wie ich das Umsetzen kann?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 12.03.06 13:33 
Hallo!

Das geht so:
ausblenden C#-Quelltext
1:
2:
3:
            Graphics g = this.CreateGraphics();
            g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            g.DrawString("Entwickler-Ecke"new Font("Arial"10), Brushes.Black, new PointF(00));


Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: So 12.03.06 15:49 
Ok, thx. Das half schon weiter. Mußte aber noch System.Drawing.Text in die Uses-Klausel einbinden.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 12.03.06 15:49 
user profile iconNeidhard von Reuental hat folgendes geschrieben:
Mußte aber noch System.Drawing.Text in die Uses-Klausel einbinden.
Jo, logisch. Man muss ja nicht jede Kleinigkeit vorkauen :zwinker:

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Neidhard von Reuental Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: So 12.03.06 17:11 
Naja, das kommt drauf an. Ich hab deinen Code-Schnipsel in Delphi eingebaut (vorher natürlich angepasst) und es ging nichts. Hab in C# ein leeres Project erstellt und deinen Code da eingefühgt und alles klappte ohne murren.
Schließlich brachte mich dann die Hilfe darauf das das ganze in einem anderen Namespace liegt :roll:
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 12.03.06 17:15 
Dass man sich bei einer entsprechenden Fehlermeldung mal ansieht, in welchem Namespace das Teil liegt und das einem da die Hilfe weiterhilft, ist irgendwie naheliegend ...

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".