Table of Contents

Class Base64ImageStringConverter

Class used to convert System.Drawing.Image images to base-64 stream representations and vice versa.

Inheritance
Base64ImageStringConverter
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public class Base64ImageStringConverter

Constructors

Base64ImageStringConverter()

Declaration
public Base64ImageStringConverter()

Methods

Base64ToImage(string)

Converts the specified base-64 stream string representation of an image into a Image.

Declaration
public static Image Base64ToImage(string base64String)
Parameters
Type Name Description
string base64String

The base-64 stream string representation of an image.

Returns
Type Description
Image

The Image version of the specified image.

ImageToBase64(Image)

Converts a Image to a base-64 string representation.

Declaration
public static string ImageToBase64(Image image)
Parameters
Type Name Description
Image image

The source Image to convert.

Returns
Type Description
string

The base-64 stream string representation of the provided image.