다음을 통해 공유


D2D1_RECT_L structure

The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.

Syntax

typedef struct _D2D1_RECTL {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} D2D1_RECT_L, *PD2D1_RECT_L;

Members

  • left
    The x-coordinate of the upper-left corner of the rectangle.

  • top
    The y-coordinate of the upper-left corner of the rectangle.

  • right
    The x-coordinate of the lower-right corner of the rectangle.

  • bottom
    The y-coordinate of the lower-right corner of the rectangle.

Remarks

By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the rectangle. For example, when RECT is passed to the FillRect function, the rectangle is filled up to, but not including, the right column and bottom row of pixels. This structure is identical to the RECTL structure.

Requirements

Header

D2d1_1helper.h