ImageSource
Immutable raster image resource providing encoded pixel data, dimensions, color space, and optional masks for PDF rendering.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Resources
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class ImageSource
Inheritance: objectImageSource
Constructors
Create an image resource from a BitmapSource with specified recompression quality.
public ImageSource(BitmapSource bitmapSource, ImageQuality imageQuality)
The bitmap source.
imageQualityImageQualityThe image quality.
Create an image resource from a BitmapSource preserving its pixel data.
public ImageSource(BitmapSource bitmapSource)
The bitmap source.
Wrap existing encoded image information (created externally) as an image resource.
public ImageSource(EncodedImageData imageSourceInfo)
The image source info.
Load image data from a stream with a target recompression quality.
public ImageSource(Stream stream, ImageQuality imageQuality)
The stream.
imageQualityImageQualityThe image quality.
Load image data from a stream, preserving original encoding when possible.
Methods
GetBitmapSource()
BitmapSource
Create a BitmapSource instance from this image’s pixel data.
public BitmapSource GetBitmapSource()
BitmapSource
The BitmapSource instance.
Return the encoded image bytes and metadata suitable for embedding or reuse.
Properties
Linear component value mapping applied during decoding (customizes range scaling per PDF spec).
public double[] DecodeArray { get; set; }
The decode array.