Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
		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);
		}
Exemplo n.º 4
0
        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));
        }