Class RgbSwap
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
Properties
PreRgb
Gets the previous RGB color value that will be restored on disposal.
public Vec3d PreRgb { get; }
Property Value
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