Exemplo n.º 1
0
        internal static AffineTransform ToMatrix(MatrixFP matrixFP)
        {
            if (matrixFP == null)
            {
                return(null);
            }
            if (matrixFP.IsIdentity())
            {
                return(new AffineTransform());
            }
            AffineTransform matrix = new AffineTransform(SingleFP.ToDouble(matrixFP.ScaleX),
                                                         SingleFP.ToDouble(matrixFP.RotateX),
                                                         SingleFP.ToDouble(matrixFP.RotateY),
                                                         SingleFP.ToDouble(matrixFP.ScaleY),
                                                         SingleFP.ToDouble(matrixFP.TranslateX),
                                                         SingleFP.ToDouble(matrixFP.TranslateY));

            return(matrix);
        }