質問編集履歴
2
スペルミスを修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
g.DrawString("Graphics.DrawString", this.Font, brush, 0, 0, format );
|
21
21
|
}
|
22
22
|
|
23
|
-
void DrawTextRendererDrawText(
|
23
|
+
void DrawTextRendererDrawText(Graphics g)
|
24
24
|
{
|
25
25
|
g.TextRenderingHint = TextRenderingHint.AntiAlias;
|
26
26
|
g.SmoothingMode = SmoothingMode.AntiAlias;
|
1
A
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
OnPaintイベントなどで渡されるGraphicsオブジェクトを使用するときは、正常に描画できるのですが、Graphics.FromImageでもらったオブジェクトを使うと発生します。
|
4
4
|
(GraphicsのTextRenderingHintはAntiAliasに設定しています)
|
5
5
|
|
6
|
+
どうすればきれいに描画できるでしょうか?
|
7
|
+
テキストの幅を正常に測定したいのでTextRendererを使う必要があります
|
8
|
+
|
6
9
|
参考画像:
|
7
10
|

|
8
11
|
|