ImageSource class

Applies to Windows and Windows Phone

Provides an object source type for the Image.Source and ImageBrush.ImageSource properties.

Inheritance

Object
  DependencyObject
    ImageSource

Syntax


public class ImageSource : DependencyObject

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The ImageSource class has these types of members:

Methods

The ImageSource class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)

 

Properties

The ImageSource class has these properties.

PropertyAccess typeDescription

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

 

Remarks

Important  

You don't typically use or create an ImageSource type directly, that's why you don't see code examples on this page. It's more common to create a BitmapImage and use that as a value. For code examples and more info, see the reference page for BitmapImage.

ImageSource and BitmapSource are intermediate base classes for BitmapImage. For more info on how to create an image source to use for Image.Source and ImageBrush.ImageSource, see Quickstart: Image and ImageBrush and BitmapImage.

The ImageSource type is also the value to use for the MediaElement.PosterSource property.

ImageSource derived classes

ImageSource is the parent class for BitmapSource and RenderTargetBitmap.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

DependencyObject
BitmapImage
BitmapSource
Image.Source
Quickstart: Image and ImageBrush

 

 

Show:
© 2014 Microsoft