RenderingUtils.DrawText
内容
[
隐藏
]DrawText(Font, string, double)
在位图中渲染文本。以 PNG 格式的字节流返回结果
public static Stream DrawText(Font font, string text, double fontSize)
| 参数 | 类型 | 描述 |
|---|---|---|
| 字体 | 字体 | 字体 |
| 文本 | String | 文本 |
| fontSize | Double | 字体大小 |
返回值
以 PNG 格式的字节流形式的图像
另见
- class Font
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font
DrawText(Font, string, double, LineSpacingType, int, int)
在位图中渲染文本。以 PNG 格式的字节流返回结果
public static Stream DrawText(Font font, string text, double fontSize,
LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
| 参数 | 类型 | 描述 |
|---|---|---|
| 字体 | 字体 | 字体 |
| 文本 | String | 文本 |
| fontSize | Double | 字体大小 |
| lineSpacingType | LineSpacingType | 行间距的类型。像素数或字体高度的百分比 |
| lineSpacingValue | Int32 | 行间距的值 |
| maxWidth | Int32 | 图像的最大宽度(像素) |
返回值
以 PNG 格式的字节流形式的图像
另见
- class Font
- enum LineSpacingType
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font
DrawText(Font, GlyphId[], double)
在位图中渲染文本。以 PNG 格式的字节流返回结果
public static Stream DrawText(Font font, GlyphId[] glyphIds, double fontSize)
| 参数 | 类型 | 描述 |
|---|---|---|
| 字体 | 字体 | 字体 |
| glyphIds | GlyphId[] | 以 glyph 标识符数组表示的文本 |
| fontSize | Double | 字体大小 |
返回值
以 PNG 格式的字节流形式的图像
另见
- class Font
- class GlyphId
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font
DrawText(Font, GlyphId[], double, LineSpacingType, int, int)
在位图中渲染文本。以 PNG 格式的字节流返回结果
public static Stream DrawText(Font font, GlyphId[] glyphIds, double fontSize,
LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
| 参数 | 类型 | 描述 |
|---|---|---|
| 字体 | 字体 | 字体 |
| glyphIds | GlyphId[] | 以 glyph 标识符数组表示的文本 |
| fontSize | Double | 字体大小 |
| lineSpacingType | LineSpacingType | 行间距的类型。像素数或字体高度的百分比 |
| lineSpacingValue | Int32 | 行间距的值 |
| maxWidth | Int32 | 图像的最大宽度(像素) |
返回值
以 PNG 格式的字节流形式的图像
另见
- class Font
- class GlyphId
- enum LineSpacingType
- class RenderingUtils
- namespace Aspose.Font.Renderers
- assembly Aspose.Font