Ejemplo n.º 1
0
 internal static XMatrix CreateSkewRadians(double skewX, double skewY, double centerX, double centerY)
 {
     XMatrix matrix = new XMatrix();
     matrix.Append(CreateTranslation(-centerX, -centerY));
     matrix.Append(new XMatrix(1, Math.Tan(skewY), Math.Tan(skewX), 1, 0, 0));
     matrix.Append(CreateTranslation(centerX, centerY));
     return matrix;
 }
Ejemplo n.º 2
0
        //public void PushEffect(BitmapEffect effect, BitmapEffectInput effectInput);
        //public void PushGuidelineSet(GuidelineSet guidelines);
        //public void PushOpacity(double opacity);
        //public void PushOpacity(double opacity, AnimationClock opacityAnimations);
        //public void PushOpacityMask(Brush opacityMask);

        public void PushTransform(MatrixTransform transform)
        {
            XMatrix matrix = _matrixStack.Peek();

            matrix.Append(transform.Matrix);
        }