示例#1
0
文件: paint.cs 项目: JC-ut0/CubeGame
 public uiPaint(
     uiColor?color             = null,
     BlendMode blendMode       = BlendMode.srcOver,
     PaintingStyle style       = PaintingStyle.fill,
     float strokeWidth         = 0f,
     StrokeCap strokeCap       = StrokeCap.butt,
     StrokeJoin strokeJoin     = StrokeJoin.miter,
     float strokeMiterLimit    = 4.0f,
     FilterMode filterMode     = FilterMode.Bilinear,
     uiColorFilter?colorFilter = null,
     uiMaskFilter?maskFilter   = null,
     uiImageFilter backdrop    = null,
     PaintShader shader        = null,
     bool invertColors         = false
     )
 {
     this.color            = color ?? _kColorDefault;
     this.blendMode        = blendMode;
     this.style            = style;
     this.strokeWidth      = strokeWidth;
     this.strokeCap        = strokeCap;
     this.strokeJoin       = strokeJoin;
     this.strokeMiterLimit = strokeMiterLimit;
     this.filterMode       = filterMode;
     this.colorFilter      = colorFilter;
     this.maskFilter       = maskFilter;
     this.backdrop         = backdrop;
     this.shader           = shader;
     this.invertColors     = invertColors;
 }
示例#2
0
文件: paint.cs 项目: JC-ut0/CubeGame
 public uiPaint(uiPaint paint)
 {
     this.color            = paint.color;
     this.blendMode        = paint.blendMode;
     this.style            = paint.style;
     this.strokeWidth      = paint.strokeWidth;
     this.strokeCap        = paint.strokeCap;
     this.strokeJoin       = paint.strokeJoin;
     this.strokeMiterLimit = paint.strokeMiterLimit;
     this.filterMode       = paint.filterMode;
     this.colorFilter      = paint.colorFilter;
     this.maskFilter       = paint.maskFilter;
     this.backdrop         = paint.backdrop;
     this.shader           = paint.shader;
     this.invertColors     = paint.invertColors;
 }
示例#3
0
        public Paint(Paint paint)
        {
            D.assert(paint != null);

            this.color            = paint.color;
            this.blendMode        = paint.blendMode;
            this.style            = paint.style;
            this.strokeWidth      = paint.strokeWidth;
            this.strokeCap        = paint.strokeCap;
            this.strokeJoin       = paint.strokeJoin;
            this.strokeMiterLimit = paint.strokeMiterLimit;
            this.filterMode       = paint.filterMode;
            this.colorFilter      = paint.colorFilter;
            this.maskFilter       = paint.maskFilter;
            this.shader           = paint.shader;
            this.invertColors     = paint.invertColors;
        }