掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
文字列を縦書きで書きたい (ID:125124)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
環境が書かれていませんが、ソースから予想が出来ますが・・・・・・・ >縦書きに表示する良い方法があったら教えてください。 と書かれていたので、暇つぶしに作って見ました。 環境がVB.NETで違いますが、参考程度に・・・・・・・・・ Dim [String] As String Dim cX As Integer, cY As Integer [String] = "なぜ、縦書きにするの??" cX = 0 : cY = 0 Dim g As Graphics = Nothing g = PictureBox1.CreateGraphics Dim MyFont As Font = Nothing MyFont = New Font("MS Pゴシック", 12) Dim f As StringFormat = Nothing f = New StringFormat(StringFormatFlags.DirectionVertical) Dim brush As Brush = Nothing brush = New SolidBrush(Color.FromArgb(255, 255, 0, 0)) g.DrawString([String], MyFont, brush, cX, cY, f) If Not brush Is Nothing Then brush.Dispose() brush = Nothing End If If Not f Is Nothing Then f.Dispose() f = Nothing End If If Not MyFont Is Nothing Then MyFont.Dispose() MyFont = Nothing End If If Not g Is Nothing Then g.Dispose() g = Nothing End If あと、宣言を覚えてくださいね。
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.