public IBrush LoadLinearBrush(Color[] linearColors, IBlend blend, IColorBlend interpolationColors, ITransformMatrix transform, WrapMode wrapMode, bool gammaCorrection) { LinearGradientBrush g = new LinearGradientBrush(new System.Drawing.Point(), new System.Drawing.Point(), System.Drawing.Color.White, System.Drawing.Color.White); g.Blend = blend.Convert(); g.GammaCorrection = gammaCorrection; g.InterpolationColors = interpolationColors.Convert(); g.LinearColors = linearColors.Convert(); g.Transform = transform.Convert(); g.WrapMode = wrapMode.Convert(); return(new DesktopBrush(g)); }
public IBrush LoadPathsGradientBrush(Color centerColor, PointF centerPoint, IBlend blend, PointF focusScales, Color[] surroundColors, IColorBlend interpolationColors, ITransformMatrix transform, WrapMode wrapMode) { PathGradientBrush g = new PathGradientBrush(new System.Drawing.Point[] { }); g.Blend = blend.Convert(); g.CenterColor = centerColor.Convert(); g.CenterPoint = centerPoint.Convert(); g.FocusScales = focusScales.Convert(); g.SurroundColors = surroundColors.Convert(); g.InterpolationColors = interpolationColors.Convert(); g.Transform = transform.Convert(); g.WrapMode = wrapMode.Convert(); return(new DesktopBrush(g)); }