skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ImageSource

ImageSource represents a single, constant set of pixels at a certain size.

Inheritance
System.Object
ImageSource
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.