New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The factory class that handles the serialization and deserialization by IImageOperation implementations

Definition

Namespace:Telerik.Web.UI.ImageEditor.Serialization

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class ImageOperationSerializer

Inheritance: objectImageOperationSerializer

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes the factory with the default(built-in) serializers

C#
public ImageOperationSerializer()

Intializes the factory with the provided serializers. Default serializers are not included.

C#
public ImageOperationSerializer(ImageOperationSerializers serializers)
Parameters:serializersImageOperationSerializers

A collection of image operation serializers.

Methods

Composes an image operation based on the provided serialized value

C#
public virtual IImageOperation Deserialize(string value)
Parameters:valuestringReturns:

IImageOperation

Composes an image operation based on the provided data

C#
public virtual IImageOperation FromData(Dictionary<string, object> data)
Parameters:dataDictionary<string, object>

A key/value collection for the operation

Returns:

IImageOperation

The newly composed image operation

Serializes the provided image operation.

C#
public virtual string Serialize(IImageOperation operation)
Parameters:operationIImageOperation

The image operation to serialize

Returns:

string

The already serialized operation