MouseZoomTriggerTests ResizeEllipseByZoomTrigger Method Delta Engine Documentation

Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ResizeEllipseByZoomTrigger()
Examples

[Test]
public void ResizeEllipseByZoomTrigger()
{
    var ellipse = new Ellipse(Vector2D.Half, 0.1f, 0.1f, Color.Red);
    new Command(zoomAmount => { ellipse.Radius += zoomAmount * 0.02f; }).Add(
        new MouseZoomTrigger());
}
See Also