Show / Hide Table of Contents

Class BitmapSource

Provides a source object for properties that use a bitmap.

Inheritance
System.Object
DependencyObject
ImageSource
BitmapSource
BitmapImage
WriteableBitmap
Inherited Members
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 abstract class BitmapSource : ImageSource, IDependencyObject

Fields

| Improve this Doc View Source

PixelHeightProperty

Identifies the PixelHeight dependency property.

Declaration
public static readonly DependencyProperty PixelHeightProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PixelWidthProperty

Identifies the PixelWidth dependency property.

Declaration
public static readonly DependencyProperty PixelWidthProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

PixelHeight

Gets the height of the bitmap in pixels.

Declaration
public int PixelHeight { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PixelWidth

Gets the width of the bitmap in pixels.

Declaration
public int PixelWidth { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

SetSource(Stream)

Sets the source of the BitmapSource.

Declaration
public void SetSource(Stream streamSource)
Parameters
Type Name Description
System.IO.Stream streamSource

The stream to set the source to.

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