Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclImpact > RS.Impact.Instruments > Classes > TRSSVGCustomInstrument > Methods

TRSSVGCustomInstrument.ChangeGradientColor(TSVGCustomGradient,TSVGColor,Boolean) Method

Scroll Prev Top Next More

Attempts to modify a gradient color scheme to a similar color scheme using NewColor, i.e., if a gradient has 3 gradient stops of dark gray, gray, white and the NewColor is Red, the method will try to change the gradient to red, lighter red, and white.

The FromFirst parameter specifies if the first or the last gradient stop is the base color to replace. The base color is replaced with the NewColor unchanged. All other gradient stops are modified from the base color.

Namespace: RS.Impact.Instruments

Parameters

Gradient

Type: TSVGCustomGradient

NewColor

Type: TSVGColor

FromFirst

Type: Boolean

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb