Provides a source object for properties that use a bitmap.
Inheritance
- Object
- DependencyObject
- ImageSource
- BitmapSource
Syntax
Attributes
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Media.Imaging.IBitmapSourceStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The BitmapSource class has these types of members:
Constructors
The BitmapSource class has these constructors.
| Constructor | Description |
|---|---|
| BitmapSource | Provides base class initialization behavior for BitmapSource-derived classes. |
Methods
The BitmapSource class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| ClearValue | Clears the local value of a dependency property. (Inherited from DependencyObject) |
| GetAnimationBaseValue | Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject) |
| GetValue | Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject) |
| ReadLocalValue | Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject) |
| SetSource | Sets the source image for a BitmapSource by accessing a stream. Most callers should use SetSourceAsync instead. |
| SetSourceAsync | Sets the source image for a BitmapSource by accessing a stream and processing the result asynchronously. |
| SetValue | Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject) |
Properties
The BitmapSource class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject) | |
| Read-only | Gets the height of the bitmap in pixels. | |
| Read-only | Identifies the PixelHeight dependency property. | |
| Read-only | Gets the width of the bitmap in pixels. | |
| Read-only | Identifies the PixelWidth dependency property. |
Remarks
ImageSource and BitmapImage are intermediate base classes for BitmapSource. For more info on how to create an image source to use for Image.Source and ImageaBrush.ImageSource, see Quickstart: Image and ImageBrush and BitmapSource.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012