コード例 #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);
        }
コード例 #2
0
ファイル: compositing.cs プロジェクト: JC-ut0/CubeGame
        public Layer pushBackdropFilter(ImageFilter filter)
        {
            var layer = new BackdropFilterLayer();

            layer.filter = filter;
            this._pushLayer(layer);
            return(layer);
        }
コード例 #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);
        }
コード例 #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;
        }