共用方式為


D2D_RECT_L structure

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

Syntax

typedef struct RECT {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} D2D_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

D2D_RECT_L is type defined from a RECT structure.

typedef RECT D2D_RECT_L;

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2DBaseTypes.h (include D2d1.h)