Class ImageSource
Encapsulates data needed for creation of an image
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Media
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public class ImageSource : IResource
Constructors
ImageSource(Byte[], String)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(byte[] data, string extension)
Parameters
System.Byte[]
data
Byte array containing representation of the image source. |
System.String
extension
The image file extension. |
ImageSource(Stream, String)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(Stream stream, string extension)
Parameters
System.IO.Stream
stream
The stream which represents the image. |
System.String
extension
The format of the image. |
Properties
Data
Gets the byte array representation of the image source.
Declaration
public virtual byte[] Data { get; }
Property Value
System.Byte[]
The byte array representation of the image source. |
Extension
Gets the image file extension.
Declaration
public virtual string Extension { get; }
Property Value
System.String
The image file extension. |