Private Sub FillRectangleInt(ByVal e As PaintEventArgs)Į.Graphics.FillRectangle(blueBrush, x, y, width, height) Private void FillRectangleInt(PaintEventArgs e)Į.Graphics.FillRectangle(blueBrush, x, y, width, height) Create location and size of rectangle.Į->Graphics->FillRectangle( blueBrush, x, y, width, height ) Void FillRectangleInt( PaintEventArgs^ e ) Private Sub FillRectangleRectangleF(ByVal e As PaintEventArgs)ĭim rect As New RectangleF(0.0F, 0.0F, 200.0F, 200.0F)Ĭreates the location and size of a rectangle. Private void FillRectangleRectangleF(PaintEventArgs e) Void FillRectangleRectangleF( PaintEventArgs^ e ) This method fills the interior of the rectangle defined by the rect parameter, including the specified upper-left corner and up to the calculated lower and bottom edges. Private Sub FillRectangleRectangle(ByVal e As PaintEventArgs)ĭim blueBrush As New SolidBrush(Color.Blue)ĭim rect As New Rectangle(0, 0, 200, 200)Į.Graphics.FillRectangle(blueBrush, rect) Rectangle rect = new Rectangle(0, 0, 200, 200) Į.Graphics.FillRectangle(blueBrush, rect) SolidBrush blueBrush = new SolidBrush(Color.Blue) Private void FillRectangleRectangle(PaintEventArgs e) SolidBrush^ blueBrush = gcnew SolidBrush( Color::Blue ) Į->Graphics->FillRectangle( blueBrush, rect ) Void FillRectangleRectangle( PaintEventArgs^ e ) The code performs the following action:įills the rectangular area on the screen. The following code example is designed for use with Windows Forms, and it requires PaintEventArgs e, which is a parameter of the Paint event handler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |