Table of Contents

Class ImageValueConverter

Namespace
DevExpress.Xpo.Metadata
Assembly
DevExpress.Xpo.v24.1.dll

A Value Converter which can be used to convert System.Drawing.Image objects to an array of bytes.

public class ImageValueConverter : ValueConverter
Inheritance
ImageValueConverter
Inherited Members

Constructors

ImageValueConverter()

Initializes a new instance of the ImageValueConverter class.

public ImageValueConverter()

Properties

StorageType

Gets the type that the property’s value is converted to when it’s saved in a data store.

public override Type StorageType { get; }

Property Value

Type

The Type which the property’s value is converted to and saved in a data store.

Methods

ConvertFromStorageType(object)

Converts a stored value from the ImageValueConverter.StorageType to its persistent property type.

public override object ConvertFromStorageType(object value)

Parameters

value object

An object which represents the value to convert.

Returns

object

An object which represents the converted value. null (Nothing in Visual Basic) if the specified value is a null reference.

ConvertToStorageType(object)

Converts the persistent property’s value to the specified type.

public override object ConvertToStorageType(object value)

Parameters

value object

An object which represents the value to convert.

Returns

object

An object which represents the converted value. null (Nothing in Visual Basic) if the specified value is a null reference.