Table of Contents

Class RgbSwap

Namespace
Hi.Disp.Treat
Assembly
HiDisp.dll

A utility class for temporarily changing the RGB color and restoring it when disposed.

public class RgbSwap : IDisposable
Inheritance
RgbSwap
Implements
Inherited Members
Extension Methods

Constructors

RgbSwap(Bind, vec3d_t)

Initializes a new instance of the RgbSwap class.

public RgbSwap(Bind bind, vec3d_t rgb)

Parameters

bind Bind

The binding context.

rgb vec3d_t

The new RGB color to set.

Properties

PreRgb

Gets the previous RGB color value that will be restored on disposal.

public vec3d_t PreRgb { get; }

Property Value

vec3d_t

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool