Emojione.UnicodeToImage Method

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

UnicodeToImage(string, bool, bool)

Takes native unicode emoji input, such as that from your mobile device, and outputs image markup.

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

Parameters

str
string

The input string

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.