Example #1
0
        //-------------------------------------------------------------------
        public Affine ToAffine()
        {
            Affine mtx = Affine.NewTranslation(-m_wx1, -m_wy1);

            mtx *= Affine.NewScaling(m_kx, m_ky);
            mtx *= Affine.NewTranslation(m_dx1, m_dy1);
            return(mtx);
        }
Example #2
0
 public Perspective Scale(double x, double y)
 {
     Multiply(Affine.NewScaling(x, y));
     return(this);
 }
Example #3
0
 public Perspective Scale(double s)
 {
     Multiply(Affine.NewScaling(s));
     return(this);
 }
Example #4
0
 //-------------------------------------------------------------------
 public Affine ToAffineScaleOnly()
 {
     return(Affine.NewScaling(m_kx, m_ky));
 }