GradientStops.Insert2(Int32, Single, Single, Int32, Single) Method

Definition

Adds a stop to a gradient and specifies the brightness, as well as the transparency, of the color.

public void Insert2 (int RGB, float Position, float Transparency = 0, int Index = -1, float Brightness = 0);
abstract member Insert2 : int * single * single * int * single -> unit
Public Sub Insert2 (RGB As Integer, Position As Single, Optional Transparency As Single = 0, Optional Index As Integer = -1, Optional Brightness As Single = 0)

Parameters

RGB
Int32

Specifies the color at that the gradient stop.

Position
Single

Specifies the position of the stop within the gradient expressed as a percent.

Transparency
Single

Specifies the opacity of color at the gradient stop.

Index
Int32

The index number of the stop.

Brightness
Single

Specifies the brightness of the color at the gradient stop.

Remarks

Gradients are a smooth transition from one color state to another. The endpoints of these sections are called stops.

This method differs from the Insert(Int32, Single, Single, Int32) method in that it enables you to specify the brightness, as well as the transparency, of the color at the gradient stop.

Applies to