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

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

public Scale ( double sx, double sy ) : void
sx double
sy double
Результат void
        public void Scale(double sx, double sy)
        {
            NativeMethods.cairo_matrix_scale (this, sx, sy);
        }

Usage Example

Пример #1
0
        public static Matrix GetTransform(this Node node)
        {
            double anchorX = node.AnchorX * node.Width;
            double anchorY = node.AnchorY * node.Height;

            Matrix transform = new Matrix ();
            transform.Translate (node.X + anchorX, node.Y + anchorY);
            transform.Rotate (node.Rotation);
            transform.Scale (node.Scale, node.Scale);
            transform.Translate (-anchorX, -anchorY);

            return transform;
        }
All Usage Examples Of Cairo.Matrix::Scale