Exemplo n.º 1
0
        public NSPathGradientBrushInfo Clone()
        {
            NSPathGradientBrushInfo other = new NSPathGradientBrushInfo();

            other.LinearGradient = this.LinearGradient.Clone();

            /*         other.focus = this.focus;
             *       other.effect = this.effect;*/
            return(other);
        }
Exemplo n.º 2
0
        private void Init()
        {
            BrushType      = NSBrushType.Solid;
            SolidBrushInfo = new NSSolidBrushInfo(Color.Red);
            ColorBlend cb = new ColorBlend(2);

            Color[] clrs   = new Color[2];
            float[] floats = new float[2];
            clrs[0]   = Color.White;
            clrs[1]   = Color.Black;
            floats[0] = 0;
            floats[1] = 1;
            cb.Colors = clrs; cb.Positions = floats;
            LinearGradientBrushInfo = new NSLinearGradientBrushInfo(cb, 0);
            HatchBrushInfo          = new NSHatchBrushInfo();
            TextrueBrushInfo        = new NSTextrueBrushInfo();
            LinearGradientBrush h;
            HatchBrush          global;
            TextureBrush        a;

            PathGradientBrushInfo = new NSPathGradientBrushInfo(cb);
        }