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
Constructors
| Improve this Doc View SourceBitmapSource()
Provides base class initialization behavior for BitmapSource-derived classes.
Declaration
protected BitmapSource()
Fields
| Improve this Doc View SourcePixelHeightProperty
Identifies the PixelHeight dependency property.
Returns the identifier for the PixelHeight dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty PixelHeightProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PixelWidthProperty
Identifies the PixelWidth dependency property.
Returns the identifier for the PixelWidth dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty PixelWidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceINTERNAL_DataURL
Declaration
public string INTERNAL_DataURL { get; }
Property Value
Type | Description |
---|---|
System.String |
INTERNAL_StreamAsBase64String
Declaration
public string INTERNAL_StreamAsBase64String { get; }
Property Value
Type | Description |
---|---|
System.String |
INTERNAL_StreamSource
Declaration
public Stream INTERNAL_StreamSource { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
PixelHeight
Gets the height of the bitmap in pixels.
Declaration
[NotImplemented]
public int PixelHeight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PixelWidth
Gets the width of the bitmap in pixels.
Declaration
[NotImplemented]
public int PixelWidth { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSetSource(Stream)
Sets the source image for a BitmapSource by accessing a stream.
Declaration
public void SetSource(Stream streamSource)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | streamSource | The stream source that sets the image source value. |
SetSource(String)
Sets the source image for a BitmapSource by passing a "data URL".
Declaration
public void SetSource(string dataUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataUrl | The image encoded in "data URL" format. |