BitmapImage Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An abstract class for a bitmap image, to be implemented by an image provider. This class is also the factory to create new bitmaps with the current image factory. The image factory must implement IImageFactory and must be registered using a call to RegisterImageFactory(IImageFactory).
public abstract class BitmapImage
public abstract class BitmapImage : IDisposable
type BitmapImage = class
type BitmapImage = class
interface IDisposable
Public MustInherit Class BitmapImage
Public MustInherit Class BitmapImage
Implements IDisposable
- Inheritance
-
BitmapImage
- Implements
This class does not have an implementation within Iot.Device.Bindings.dll. You can use the Iot.Device.Bindings.SkiaSharpAdapter.dll as a supported operating-system independent implementation of this class or write your own implementation.
Bitmap |
Initializes a BitmapImage instance with the specified data, width, height and stride. |
Bitmap |
Initializes a BitmapImage instance with the specified data, width, height and stride. |
Data |
Data related to the image (derived class defines a specific format) |
Height |
Height of the image |
Item[Int32, Int32] |
Accesses the pixel at the given position |
Pixel |
The format of the image |
Stride |
Number of bytes per row |
Width |
Width of the image |
As |
Return the data pointer as a raw span of bytes |
Clear(Color) |
Clears the image to specific color |
Create |
Creates a bitmap using the active factory. This requires an implementation to be registered. See BitmapImage for details. |
Create |
Create a bitmap from a file. This requires an implementation to be registered. See BitmapImage for details. |
Create |
Create a bitmap from an open stream. This requires an implementation to be registered. See BitmapImage for details. |
Dispose() |
Disposes this instance. Correctly disposing instance of this class is important to prevent memory leaks or overload of the garbage collector. |
Dispose(Boolean) |
Disposes this instance |
Get |
Returns an abstraction interface for drawing to this bitmap. |
Get |
Gets the color of the pixel at the given position |
Register |
Register an image factory. |
Save |
Saves this bitmap to a file |
Save |
Save the image to a stream |
Set |
Sets pixel at specific position |
Produkt | Verzie |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |