Image​Source Image​Source Image​Source Class


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

public class ImageSource : DependencyObject, IImageSourcepublic class ImageSource : DependencyObject, IImageSourcePublic Class ImageSource Inherits DependencyObject Implements IImageSource
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties



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 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.

See Also