Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Another version of the RoundRectangle script.
- // But personally for a control itself.
- // Also you have to handle the "getting the GraphicsPath" part yourself.
- Shape.AddArc(0, 0, 10, 10, 180, 90);
- Shape.AddArc(Width - 11, 0, 10, 10, -90, 90);
- Shape.AddArc(Width - 11, Height - 11, 10, 10, 0, 90);
- Shape.AddArc(0, Height - 11, 10, 10, 90, 90);
- Shape.CloseAllFigures();
- Invalidate();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement