public static ColorBlend Convert(this IColorBlend blend) { var result = new ColorBlend(blend.Colors.Length); result.Colors = blend.Colors.Convert(); result.Positions = blend.Positions; return(result); }
public IBrush LoadLinearBrush(AGS.API.Color[] linearColors, IBlend blend, IColorBlend interpolationColors, ITransformMatrix transform, AGS.API.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 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(AGS.API.Color centerColor, AGS.API.PointF centerPoint, IBlend blend, AGS.API.PointF focusScales, AGS.API.Color[] surroundColors, IColorBlend interpolationColors, ITransformMatrix transform, AGS.API.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); }
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)); }
public IBrush LoadPathsGradientBrush(AGS.API.Color centerColor, AGS.API.PointF centerPoint, IBlend blend, AGS.API.PointF focusScales, AGS.API.Color[] surroundColors, IColorBlend interpolationColors, ITransformMatrix transform, WrapMode wrapMode) { throw new NotImplementedException(); }
public IBrush LoadLinearBrush(AGS.API.Color[] linearColors, IBlend blend, IColorBlend interpolationColors, ITransformMatrix transform, WrapMode wrapMode, bool gammaCorrection) { throw new NotImplementedException(); }