Color.Clamp Method


Sets the ScRGB channels of the color to within the gamut of 0 to 1, if they are outside that range.

 void Clamp();
public void Clamp ();
member this.Clamp : unit -> unit
Public Sub Clamp ()


The gamut of the ScRGB color space is larger than the clamp range, so the use of this method may result in the loss of color information.

Applies to