ImageSource ImageSource ImageSource Class

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

Syntax

Declaration

public class ImageSourcepublic class ImageSourcePublic Class ImageSource

Inheritance Hierarchy

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 Source and ImageSource, see Image and ImageBrush and BitmapImage.

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

ImageSource derived classes

ImageSource is the parent class for BitmapSource and RenderTargetBitmap.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.UI.Xaml.Media.dll