←Select platform

DrawRectangle(D2DPen,float,float,float,float) Method

Summary

Draws the outline of a rectangle that has the specified dimensions and D2DPen.

Syntax
C#
C++
public void DrawRectangle( 
   D2DPen pen, 
   float x, 
   float y, 
   float width, 
   float height 
) 
vb[VB Syntax] 
Public Sub DrawRectangle( 
   ByVal _pen_ As D2DPen, 
   ByVal _x_ As Single, 
   ByVal _y_ As Single, 
   ByVal _width_ As Single, 
   ByVal _height_ As Single 
) 
public:  
   void DrawRectangle( 
      D2DPen^ pen, 
      Single x, 
      Single y, 
      Single width, 
      Single height 
   ) 

Parameters

pen

D2DPen that determines the pen brush, thickness, and style.

x

The x-coordinate of the upper-left corner of the rectangle to draw.

y

The y-coordinate of the upper-left corner of the rectangle to draw.

width

Width of the rectangle to draw.

height

Height of the rectangle to draw.

Remarks

DrawRectangle(D2DPen,float,float,float,float) draws the outline of a rectangle using the specified pen style.

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.D2DRendering Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.