Class ImageSource
ImageSource represents a single, constant set of pixels at a certain size.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Resources
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class ImageSource : IInstanceIdOwner, IImageDescriptor
Constructors
ImageSource(Stream)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(Stream stream)
Parameters
System.IO.Stream
stream
The stream. |
ImageSource(Stream, ImageQuality)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(Stream stream, ImageQuality imageQuality)
Parameters
System.IO.Stream
stream
The stream. |
ImageQuality
imageQuality
The image quality. |
ImageSource(BitmapSource)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(BitmapSource bitmapSource)
Parameters
System.Windows.Media.Imaging.BitmapSource
bitmapSource
The bitmap source. |
ImageSource(BitmapSource, ImageQuality)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(BitmapSource bitmapSource, ImageQuality imageQuality)
Parameters
System.Windows.Media.Imaging.BitmapSource
bitmapSource
The bitmap source. |
ImageQuality
imageQuality
The image quality. |
ImageSource(EncodedImageData)
Initializes a new instance of the ImageSource class.
Declaration
public ImageSource(EncodedImageData imageSourceInfo)
Parameters
EncodedImageData
imageSourceInfo
The image source info. |
Properties
DecodeArray
Gets or sets the decode array which specifies a linear mapping of each component value to a number that would be appropriate as a component value in the color space of the image.
Declaration
public double[] DecodeArray { get; set; }
Property Value
System.Double[]
The decode array. |
Height
Gets image height.
Declaration
public int Height { get; }
Property Value
System.Int32
|
Width
Gets image width.
Declaration
public int Width { get; }
Property Value
System.Int32
|
Methods
GetBitmapSource()
Creates System.Windows.Media.Imaging.BitmapSource from the image source instance.
Declaration
public BitmapSource GetBitmapSource()
Returns
System.Windows.Media.Imaging.BitmapSource
The System.Windows.Media.Imaging.BitmapSource instance. |
GetEncodedImageData()
Gets the encoded image data.
Declaration
public EncodedImageData GetEncodedImageData()
Returns
EncodedImageData
The encoded image data. |