Show / Hide Table of Contents

Class BitmapImage

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

Inheritance
System.Object
DependencyObject
ImageSource
BitmapSource
BitmapImage
Inherited Members
BitmapSource.SetSource(Stream)
BitmapSource.PixelHeightProperty
BitmapSource.PixelHeight
BitmapSource.PixelWidthProperty
BitmapSource.PixelWidth
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media.Imaging
Assembly: OpenSilver.dll
Syntax
public sealed class BitmapImage : BitmapSource, IDependencyObject

Constructors

| Improve this Doc View Source

BitmapImage()

Initializes a new instance of the BitmapImage class.

Declaration
public BitmapImage()
| Improve this Doc View Source

BitmapImage(Uri)

Initializes a new instance of the BitmapImage class, using the supplied URI.

Declaration
public BitmapImage(Uri uriSource)
Parameters
Type Name Description
System.Uri uriSource

The URI that references the source graphics file for the image.

Fields

| Improve this Doc View Source

CreateOptionsProperty

Identifies the CreateOptions dependency property.

Declaration
[NotImplemented]
public static readonly DependencyProperty CreateOptionsProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

UriSourceProperty

Identifies the UriSource dependency property.

Declaration
public static readonly DependencyProperty UriSourceProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

CreateOptions

Gets or sets the BitmapCreateOptions for a BitmapImage.

Declaration
[NotImplemented]
public BitmapCreateOptions CreateOptions { get; set; }
Property Value
Type Description
BitmapCreateOptions

The BitmapCreateOptions used for this BitmapImage. The default is DelayCreation.

| Improve this Doc View Source

UriSource

Gets or sets the URI of the graphics source file that generated this BitmapImage.

Declaration
public Uri UriSource { get; set; }
Property Value
Type Description
System.Uri

The URI of the graphics source file that generated this BitmapImage.

Events

| Improve this Doc View Source

ImageFailed

Occurs when there is an error associated with image retrieval or format.

Declaration
public event ExceptionRoutedEventHandler ImageFailed
Event Type
Type Description
ExceptionRoutedEventHandler
| Improve this Doc View Source

ImageOpened

Occurs when the image source is downloaded and decoded with no failure. You can use this event to determine the size of an image before rendering it.

Declaration
public event RoutedEventHandler ImageOpened
Event Type
Type Description
RoutedEventHandler
| Improve this Doc View Source

UriSourceChanged

Occurs when the UriSource is changed.

Declaration
public event EventHandler UriSourceChanged
Event Type
Type Description
System.EventHandler

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source