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)

Initializes a new instance of the RgbSwap class.

public RgbSwap(Bind bind, Vec3d rgb)

Parameters

bind Bind

The binding context.

rgb Vec3d

The new RGB color to set.

Properties

PreRgb

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

public Vec3d PreRgb { get; }

Property Value

Vec3d

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