Exemplo n.º 1
0
        public ImageFilterEngineLayer pushImageFilter(ImageFilter imageFilter, ImageFilterEngineLayer oldLayer = null)
        {
            D.assert(_debugCheckCanBeUsedAsOldLayer(oldLayer, "pushImageFilter"));
            ImageFilterEngineLayer layer = new ImageFilterEngineLayer(SceneBuilder_pushImageFilter(_ptr, imageFilter._toNativeImageFilter()._ptr));

            return(layer);
        }
Exemplo n.º 2
0
        public Layer pushBackdropFilter(ImageFilter filter)
        {
            var layer = new BackdropFilterLayer();

            layer.filter = filter;
            this._pushLayer(layer);
            return(layer);
        }
Exemplo n.º 3
0
        public BackdropFilterEngineLayer pushBackdropFilter(
            ImageFilter filter,
            BackdropFilterEngineLayer oldLayer = null)
        {
            D.assert(_debugCheckCanBeUsedAsOldLayer(oldLayer, "pushBackdropFilter"));
            BackdropFilterEngineLayer layer = new BackdropFilterEngineLayer(SceneBuilder_pushBackdropFilter(_ptr, filter._toNativeImageFilter()._ptr));

            D.assert(_debugPushLayer(layer));
            return(layer);
        }
Exemplo n.º 4
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.backdrop         = paint.backdrop;
            this.shader           = paint.shader;
            this.invertColors     = paint.invertColors;
        }