Class BitmapSource
Provides a source object for properties that use a bitmap.
Inherited Members
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 SourcePixelHeightProperty
Identifies the PixelHeight dependency property.
Declaration
public static readonly DependencyProperty PixelHeightProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PixelWidthProperty
Identifies the PixelWidth dependency property.
Declaration
public static readonly DependencyProperty PixelWidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourcePixelHeight
Gets the height of the bitmap in pixels.
Declaration
public int PixelHeight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 SourceSetSource(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. |