Class BitmapStream
A wrapper for Bitmap which exposes its stream and handles disposal.
Implements
Inherited Members
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments.Capture
Assembly: DeviceConsole.Environments.dll
Syntax
public class BitmapStream : IDisposable
Constructors
View SourceBitmapStream(Bitmap)
Initializes a new instance of the BitmapStream class.
Declaration
public BitmapStream(Bitmap bmp)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | bmp | The bitmap to use. |
BitmapStream(Stream, Bitmap?, bool)
Initializes a new instance of the BitmapStream class.
Declaration
public BitmapStream(Stream s, Bitmap? b = null, bool suppressDecode = false)
Parameters
Type | Name | Description |
---|---|---|
Stream | s | The stream to use. |
Bitmap | b | The bitmap to use. |
bool | suppressDecode | If false, the bitmap will be decoded from the stream automatically. |
Properties
View SourceBitmap
Gets the bitmap, if it could be decoded.
Declaration
public Bitmap? Bitmap { get; }
Property Value
Type | Description |
---|---|
Bitmap |
Stream
Gets the stream, if there is one.
Declaration
public Stream? Stream { get; }
Property Value
Type | Description |
---|---|
Stream |
Methods
View SourceDispose()
Declaration
public void Dispose()