Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void SetViewport(double, double, double, double, bool)

  • Declared in: RT.Util.Drawing.Canvas

Declaration

public void SetViewport(
    double leftWX,
    double topWY,
    double rightWX,
    double bottomWY,
    bool maintainAspect
)

Summary

Sets the scaling and offset so that the world coordinate "leftWX" corresponds to the leftmost coordinate on the screen, world "topWY" to the topmost screen coordinate, etc. If "maintainAspect" is "true", ensures that X and Y scaling is the same, by making one of the axes show more than implied by the arguments passed in.