Version

EncodeImage Method (FormattedLinkEditor)

Encodes the specified image into a string that can be embedded inside the formatted text. The returned value can be assigned to the 'data' attribute of the 'img' tag to embedd the image directly inside the formatted text value.
Syntax
'Declaration
 
Public Shared Function EncodeImage( _
   ByVal img As Image _
) As String
public static string EncodeImage( 
   Image img
)

Parameters

img
The System.Drawing.Image to encode.

Return Value

A string that can be embedded inside the formatted text.
Remarks

Encodes the specified image into a string that can be embedded. The returned value can be assigned to the 'data' attribute of the 'img' tag to embedd the image directly inside the formatted text value. Note that you can also display an image from a file or URL by using the 'src' attribute of the 'img' tag without having to embedd it inside the formatted text value.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also