Emojione.ToImage Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ToImage(string, bool, bool, bool)

Takes an input string containing both native unicode emoji and shortnames, and translates it into emoji images for display.

public static string ToImage(string str, bool ascii = false, bool inline = false, bool sprite = false)

Parameters

str
string

The input string.

ascii
bool

true to also convert ascii emoji to images.

inline
bool

true to return inline <svg> instead of <img>.

sprite
bool

true to enable sprite mode instead of individual images.

Returns

string

A string with appropriate html for rendering emoji.