Exemple #1
0
        public void pushOpacity(int alpha)
        {
            var layer = new OpacityLayer();

            layer.alpha = alpha;
            this._pushLayer(layer);
        }
Exemple #2
0
        public void PushOpacity(int alpha, double dx = 0, double dy = 0)
        {
            var layer = new OpacityLayer();

            layer.set_alpha(alpha);
            layer.set_offset(new SKPoint((float)dx, (float)dy));
            PushLayer(layer);
        }
Exemple #3
0
        public Layer pushOpacity(int alpha, Offset offset = null)
        {
            offset = offset ?? Offset.zero;

            var layer = new OpacityLayer();

            layer.alpha  = alpha;
            layer.offset = offset;
            this._pushLayer(layer);
            return(layer);
        }