{"id":638,"date":"2023-05-20T00:56:05","date_gmt":"2023-05-19T15:56:05","guid":{"rendered":"http:\/\/tindevil.com\/?p=638"},"modified":"2023-05-20T01:16:12","modified_gmt":"2023-05-19T16:16:12","slug":"simple-c-%eb%91%a5%ea%b7%bc%eb%b2%84%ed%8a%bcround-button-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/tindevil.com\/?p=638","title":{"rendered":"[SIMPLE C#] \ub465\uadfc\ubc84\ud2bc(Round Button) \ub9cc\ub4e4\uae30"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1.png\" alt=\"\" class=\"wp-image-287\" width=\"44\" height=\"44\" srcset=\"https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1.png 512w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1-300x300.png 300w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1-150x150.png 150w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1-270x270.png 270w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1-192x192.png 192w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1-180x180.png 180w, https:\/\/tindevil.com\/wp-content\/uploads\/2020\/02\/cropped-icons8-source-code-96-1-32x32.png 32w\" sizes=\"auto, (max-width: 44px) 100vw, 44px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"[SIMPLE C#] \ub465\uadfc\ubc84\ud2bc(Round Button) \ub9cc\ub4e4\uae30\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/n0R_X3wFQDk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\ub098\ub9cc\uc758 \ucee8\ud2b8\ub864 \ub9cc\ub4e4\uae30 1\ud0c4! Round Button<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite>\ubaa8\uc11c\ub9ac\ub97c \uc9c0\uc815 \uac12 \ub9cc\ud07c \ub465\uae00\uac8c \ub9cc\ub4e4\uc5b4\uc11c Path\ub97c \ubc18\ud658 \ud558\ub294 \ud568\uc218<\/cite><\/blockquote>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">private GraphicsPath CreateRoundRectPath(int x, int y, int width, int height, int cornerRadius)\n{\n    GraphicsPath path = new GraphicsPath();\n    if (cornerRadius == 0)\n    {\n        path.AddRectangle(new Rectangle(x, y, width, height));\n    }\n    else\n    {\n        path.AddArc(x, y, cornerRadius, cornerRadius, 180, 90); \/\/ \uc67c\ucabd \uc0c1\ub2e8 \ubaa8\uc11c\ub9ac\n        path.AddArc(x + width - cornerRadius, y, cornerRadius, cornerRadius, 270, 90);\/\/ \uc624\ub978\ucabd \uc0c1\ub2e8 \ubaa8\uc11c\ub9ac\n        path.AddArc(x + width - cornerRadius, y + height - cornerRadius, cornerRadius, cornerRadius, 0, 90);\/\/ \uc624\ub978\ucabd \ud558\ub2e8 \ubaa8\uc11c\ub9ac\n        path.AddArc(x, y + height - cornerRadius, cornerRadius, cornerRadius, 90, 90);\/\/ \uc67c\ucabd \ud558\ub2e8 \ubaa8\uc11c\ub9ac\n    }\n    path.CloseFigure();\n    return path;\n}<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ucee8\ud2b8\ub864 \uc81c\uc791\uc2dc \uae30\ubcf8 \ud30c\ub77c\ubbf8\ud130<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">public UserControl1()\n{\n    InitializeComponent();\n\n    \/\/ Set Optimized Double Buffer to reduce flickering\n    this.SetStyle(ControlStyles.UserPaint, true);\n    this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);\n    this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);\n    this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);\n\n    \/\/ Redraw when resized\n    this.SetStyle(ControlStyles.ResizeRedraw, true);\n    this.Resize += (s1, e1) => { this.Invalidate(); };\n}<\/pre>\n\n\n<p>\uc601\uc0c1\uc758 \ub0b4\uc6a9\uc744 \uc678\uc6b8 \ud544\uc694\ub294 \uc5c6\uc2b5\ub2c8\ub2e4. \uc5b4\ub5a4 \uacbd\uc6b0\uc5d0 \uc0ac\uc6a9\uc744 \ud588\uad6c\ub098 \ud558\ub294 \uc810\ub9cc \uae30\uc5b5\ud558\uba74 \uc88b\uaca0\uc2b5\ub2c8\ub2e4<\/p>\n<p>\uc544\ub798 \uc18c\uc2a4\ub294 \uc601\uc0c1\uacfc\ub294 \uc870\uae08 \ub2e4\ub978 \ub0b4\uc6a9\uc774\uc9c0\ub9cc 95% \ube44\uc2b7\ud55c \ucf54\ub4dc \uc785\ub2c8\ub2e4! \ub2e4\ub978 \uc810\uc744 \ucc38\uace0\ud558\uc138\uc694<\/p>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/blog.kakaocdn.net\/dn\/dlWtYD\/btsgEasmgHN\/KQmbxACID3rUkEGXVCZBYk\/tfile.zip\">\uc18c\uc2a4 \ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ub098\ub9cc\uc758 \ucee8\ud2b8\ub864 \ub9cc\ub4e4\uae30 1\ud0c4! Round Button \ubaa8\uc11c\ub9ac\ub97c \uc9c0\uc815 \uac12 \ub9cc\ud07c \ub465\uae00\uac8c \ub9cc\ub4e4\uc5b4\uc11c Path\ub97c \ubc18\ud658 \ud558\ub294 \ud568\uc218 \ucee8\ud2b8\ub864 \uc81c\uc791\uc2dc \uae30\ubcf8 \ud30c\ub77c\ubbf8\ud130 \uc601\uc0c1\uc758 \ub0b4\uc6a9\uc744 \uc678\uc6b8 \ud544\uc694\ub294 \uc5c6\uc2b5\ub2c8\ub2e4. \uc5b4\ub5a4 \uacbd\uc6b0\uc5d0 \uc0ac\uc6a9\uc744 \ud588\uad6c\ub098 \ud558\ub294 \uc810\ub9cc \uae30\uc5b5\ud558\uba74 \uc88b\uaca0\uc2b5\ub2c8\ub2e4 \uc544\ub798 \uc18c\uc2a4\ub294 \uc601\uc0c1\uacfc\ub294 \uc870\uae08 \ub2e4\ub978 \ub0b4\uc6a9\uc774\uc9c0\ub9cc 95% \ube44\uc2b7\ud55c \ucf54\ub4dc \uc785\ub2c8\ub2e4! \ub2e4\ub978 \uc810\uc744 \ucc38\uace0\ud558\uc138\uc694<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[30],"tags":[13,41,14,21,40,22,20,16,17],"class_list":["post-638","post","type-post","status-publish","format-standard","hentry","category-c-basic","tag-c","tag-roundbutton","tag-simple-c","tag-21","tag-40","tag-22","tag-20","tag-16","tag-17"],"_links":{"self":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=638"}],"version-history":[{"count":10,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/638\/revisions"}],"predecessor-version":[{"id":653,"href":"https:\/\/tindevil.com\/index.php?rest_route=\/wp\/v2\/posts\/638\/revisions\/653"}],"wp:attachment":[{"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tindevil.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}