Windows.UI.Xaml.Media.ImageSource

June 22, 2022 ยท View on GitHub

-description

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

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

-examples

-see-also

DependencyObject, BitmapImage, BitmapSource, Image.Source, Image and ImageBrush