Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<Cairo> Rectangle(int, int, int, int)

  • Declared in: RT.Coordinates.Cairo

Declaration

public static IEnumerable<Cairo> Rectangle(
    int dx,
    int dy,
    int dw,
    int dh
)

Summary

Constructs a grid consisting of a rectangle positioned at (dx/2, dy/2) and of size dw/2 × dh/2.

Parameters

intdx Double the x-coordinate of the top-left corner of the rectangle.
intdy Double the y-coordinate of the top-left corner of the rectangle.
intdw Double the width of the rectangle.
intdh Double the height of the rectangle.

Remarks

The reason the arguments are all doubled is because a single integer coordinate pair refers to four cairos (arranged in a 2×2). By using doubled values, we effectively support half-integer points and sizes.