Table of Contents

Method ImageFromTextWithFontStyle

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ImageFromTextWithFontStyle(TextAndFontStyle[], double, Font, Color, Color?)

Creates image from the specified array of TextAndFontStyle.

public static Image ImageFromTextWithFontStyle(TextAndFontStyle[] text, double scaleFactor, Font font, Color foreColor, Color? backColor = null)

Parameters

text TextAndFontStyle[]

Array of strings with font styles.

scaleFactor double

Scale factor.

font Font

Font that defines the font of the string.

foreColor Color

Foreground color of the text.

backColor Color

Background color of the text. Optional. Default is Null. If Null, background is transparent.

Returns

Image