Advertisement
MaxBassanetti

RoundBorder

Sep 23rd, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. public class CustomGraphicsPath
  2.     {
  3.         //Importo dalla api di windows la chiamata alla funzione CreateRoundRectRgn per creare la         GraphicsPath con bordi arrotondati
  4.         [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
  5.         public static extern IntPtr CreateRoundRectRgn
  6.         (
  7.             int nLeftRect,
  8.             int ntopRect,
  9.             int nRightRect,
  10.             int nBottomRect,
  11.             int nWidthEllipse,
  12.             int nHeightEllipse
  13.             );
  14.  
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement