Method ImageFromTextWithFontStyle
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
textTextAndFontStyle[]Array of strings with font styles.
scaleFactordoubleScale factor.
fontFontFont that defines the font of the string.
foreColorColorForeground color of the text.
backColorColorBackground color of the text. Optional. Default is Null. If Null, background is transparent.