Aspose::Font::Renderers::RenderingUtils::DrawText 方法
内容
[
隐藏
]RenderingUtils::DrawText(System::SharedPtr<Font>, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>, double) method
Rendering text in BitMap. Return result in PNG-format as stream of bytes.
static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> glyphIds, double fontSize)
| 参数 | 类型 | 描述 |
|---|---|---|
| font | System::SharedPtr<Font> | 字体 |
| glyphIds | System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> | 文本表示为字形标识符数组 |
| fontSize | double | 字体 大小 |
ReturnValue
PNG 格式的图像,以字节流形式
另见
- Typedef SharedPtr
- Class Stream
- Class Font
- Typedef ArrayPtr
- Class GlyphId
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++
RenderingUtils::DrawText(System::SharedPtr<Font>, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>, double, RenderingUtils::LineSpacingType, int32_t, int32_t) method
Rendering text in BitMap. Return result in PNG-format as stream of bytes.
static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> glyphIds, double fontSize, RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth)
| 参数 | 类型 | 描述 |
|---|---|---|
| font | System::SharedPtr<Font> | 字体 |
| glyphIds | System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> | 文本表示为字形标识符数组 |
| fontSize | double | 字体 大小 |
| lineSpacingType | RenderingUtils::LineSpacingType | 行间距的类型。像素数或字体高度的百分比 |
| lineSpacingValue | int32_t | 行间距的值 |
| maxWidth | int32_t | 图像的最大宽度(像素) |
ReturnValue
PNG 格式的图像,以字节流形式
另见
- Typedef SharedPtr
- Class Stream
- Class Font
- Typedef ArrayPtr
- Class GlyphId
- Enum LineSpacingType
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++
RenderingUtils::DrawText(System::SharedPtr<Font>, System::String, double) method
Rendering text in BitMap. Return result in PNG-format as stream of bytes.
static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::String text, double fontSize)
| 参数 | 类型 | 描述 |
|---|---|---|
| font | System::SharedPtr<Font> | 字体 |
| 文本 | System::String | Text |
| fontSize | double | 字体 大小 |
ReturnValue
PNG 格式的图像,以字节流形式
另见
- Typedef SharedPtr
- Class Stream
- Class Font
- Class String
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++
RenderingUtils::DrawText(System::SharedPtr<Font>, System::String, double, RenderingUtils::LineSpacingType, int32_t, int32_t) method
Rendering text in BitMap. Return result in PNG-format as stream of bytes.
static System::SharedPtr<System::IO::Stream> Aspose::Font::Renderers::RenderingUtils::DrawText(System::SharedPtr<Font> font, System::String text, double fontSize, RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth)
| 参数 | 类型 | 描述 |
|---|---|---|
| font | System::SharedPtr<Font> | 字体 |
| 文本 | System::String | Text |
| fontSize | double | 字体 大小 |
| lineSpacingType | RenderingUtils::LineSpacingType | 行间距的类型。像素数或字体高度的百分比 |
| lineSpacingValue | int32_t | 行间距的值 |
| maxWidth | int32_t | 图像的最大宽度(像素) |
ReturnValue
PNG 格式的图像,以字节流形式
另见
- Typedef SharedPtr
- Class Stream
- Class Font
- Class String
- Enum LineSpacingType
- Class RenderingUtils
- Namespace Aspose::Font::Renderers
- Library Aspose.Font for C++