public NSSolidBrushInfo Clone() { NSSolidBrushInfo other = new NSSolidBrushInfo(); other.Color = this.Color; return(other); }
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); }