利用GDI+绘制旋转文字,矩形内可以根据布局方式排列文本
GraphicsText
00 Remarks
01 Syntax
Microsoft.VisualBasic.Drawing.Drawing2D.Text.GraphicsText
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| DrawString | 2 | 绘制根据点旋转文本,一般旋转点给定位文本包围盒中心点 |
03 Members
DrawString(
String, Font, Brush, RectangleF, StringFormat, Single)绘制根据矩形旋转文本
Parameters
| Name | Type | Description |
|---|---|---|
s | String | 文本 |
font | Font | 字体 |
brush | Brush | 填充 |
layoutRectangle | RectangleF | 局部矩形 |
format | StringFormat | 布局方式 |
angle | Single | 角度 |
DrawString(
String, Font, Brush, PointF, Single, StringFormat)绘制根据点旋转文本,一般旋转点给定位文本包围盒中心点
Parameters
| Name | Type | Description |
|---|---|---|
s | String | 文本 |
font | Font | 字体 |
brush | Brush | 填充 |
point | PointF | 旋转点 |
format | Single | 布局方式 |
angle | StringFormat | 角度 |