Show / Hide Table of Contents

Class BitmapStream

A wrapper for Bitmap which exposes its stream and handles disposal.

Inheritance
object
BitmapStream
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments.Capture
Assembly: DeviceConsole.Environments.dll
Syntax
public class BitmapStream : IDisposable

Constructors

View Source

BitmapStream(Bitmap)

Initializes a new instance of the BitmapStream class.

Declaration
public BitmapStream(Bitmap bmp)
Parameters
Type Name Description
Bitmap bmp

The bitmap to use.

View Source

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 Source

Bitmap

Gets the bitmap, if it could be decoded.

Declaration
public Bitmap? Bitmap { get; }
Property Value
Type Description
Bitmap
View Source

Stream

Gets the stream, if there is one.

Declaration
public Stream? Stream { get; }
Property Value
Type Description
Stream

Methods

View Source

Dispose()

Declaration
public void Dispose()

Implements

IDisposable
  • View Source
In This Article
Back to top Generated by DocFX