Cairo.Matrix.TransformPoint C# (CSharp) Метод

TransformPoint() публичный Метод

public TransformPoint ( double &x, double &y ) : void
x double
y double
Результат void
        public void TransformPoint(ref double x, ref double y)
        {
            NativeMethods.cairo_matrix_transform_point (this, ref x, ref y);
        }

Usage Example

Пример #1
0
 public void DeviceToUser(ref double x, ref double y)
 {
     Cairo.Matrix inv = (Cairo.Matrix) this.transformMatrix.Clone();
     Cairo.Status cs  = inv.Invert();
     if (cs == Cairo.Status.Success)
     {
         inv.TransformPoint(ref x, ref y);
     }
     else
     {
         throw new Exception("Unable to transform device coordinates to user coordinates because the matrix was uninvertible (" + cs.ToString() + ").");
     }
 }
All Usage Examples Of Cairo.Matrix::TransformPoint