{"id":235,"date":"2009-12-07T19:43:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=235"},"modified":"2009-12-07T19:43:00","modified_gmt":"1970-01-01T00:00:00","slug":"visual-basic-net-grafik-kutuphanesi","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2009\/12\/07\/visual-basic-net-grafik-kutuphanesi\/","title":{"rendered":"Visual Basic.NET Grafik K\u00fct\u00fcphanesi"},"content":{"rendered":"<p>&nbsp;<\/p>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\">Visual Basic.NET&#8217;in grafik k&uuml;t&uuml;phanesini kullanarak bazi sekillerin nasil &ccedil;izildigini anlatmaya &ccedil;alisacagim.<\/font><\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><b>D&uuml;z &ccedil;izgi<\/b> ile baslayalim: Ilk yapmamiz gereken formumuza, <i>toolbox<\/i>&#8216;tan bir <i><b>PictureBox<\/b><\/i><span style=\"font-style: normal;\">ekliyoruz. Bir de <\/span><i>button <\/i><span style=\"font-style: normal;\">ekleyip adini btnCizgi seklinde degistiriyoruz.<\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\">Ger&ccedil;ek hayatta bize &ccedil;izgi &ccedil;izmemiz i&ccedil;in lazim olan nedir? Bir kalem ve bir kagit, oyle degil mi?<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\">Visual Basic.NET&#8217;te de bunlar lazim. &Ouml;yleyse hemen bir kalem ve bir de kagit tanimliyoruz:<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n<a href='www.yazilimmutfagi.com'>.<\/a><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#0000ff\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\">Dim<\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"> kagit <\/span><\/font><font color=\"#0000ff\"><span style=\"font-style: normal;\">As<\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"> Graphics<\/span><\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> kalem <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> Pen<\/font><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\">Simdi sira <\/span><i>kagit<\/i><span style=\"font-style: normal;\"> ve <\/span><i>kalem<\/i><span style=\"font-style: normal;\"> degiskenlerine deger atamaya geldi. <\/span><i><b>Graphics <\/b><\/i><span style=\"font-style: normal;\">olarak tanimladigimiz <\/span><i>kagit<\/i><span style=\"font-style: normal;\"> degiskenine daha once formumuza ekledigimiz <\/span><i><b>PictureBox<\/b><\/i><span style=\"font-style: normal;\">&#8216;u atiyoruz ve <\/span><i><b>CreateGraphics<\/b><\/i><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">metodunu cagiriyoruz ki &ccedil;izim yapabilelim:<\/span><\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\">kagit = PictureBox1.CreateGraphics()<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\">Simdi sira <\/span><i>kalem <\/i><span style=\"font-style: normal;\">degiskenimize deger atamaya geldi:<\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\">kalem = <\/span><font color=\"#0000ff\"><span style=\"font-style: normal;\">New<\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"> Pen(Color.Red)<\/span><\/font><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\">Yeni bir <\/span><i><b>Pen <\/b><\/i><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">nesnesi olusturuyor ve renk olarak da kirmiziyi se&ccedil;iyoruz.<\/span><\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Artik bir kalem ve bir de kagidimiz olduguna g&ouml;re &ccedil;izim yapabiliriz.<\/font><\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">Visual Basic.NET&#8217;te d&uuml;z &ccedil;izgi metotlari d&ouml;rt adettir. Hepsini anlatmayacagim; bizim burada kullanacagimiz metot bes adet parametre gerektirir:<\/span><\/span><span style=\"font-style: normal;\"><u><span style=\"font-weight: normal;\"> kalem, yatay baslangi&ccedil; noktasi, dikey baslangi&ccedil; noktasi, yatay bitis noktasi ve dikey bitis noktasi.<\/span><\/u><\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Analitik ortami; X ve Y dogrularini g&ouml;z&uuml;m&uuml;zde canlandiralim.<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><img decoding=\"async\" loading=\"lazy\" width=\"355\" height=\"514\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/yuklenendosyalar\/image\/vb_xyPos.png\" \/><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">kagit.DrawLine(kalem, 10, 20, 100, 110)<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">Olayin t&uuml;rk&ccedil;esi s&ouml;yle: Kagidimizi aliyoruz, yapacagimiz fiili belirliyoruz (<\/span><\/span><i><b>DrawLine<\/b><\/i><i><span style=\"font-weight: normal;\"> &ndash; &ccedil;izgi &ccedil;ek<\/span><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">), kalemimizle belirlenen noktalar (<\/span><\/span><i><span style=\"font-weight: normal;\">X1,Y1,X2,Y2<\/span><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">) arasina &ccedil;izgimizi &ccedil;ekiyoruz.<\/span><\/span><\/i><\/i><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Bu kadar basit.<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">Simdi bir de <\/span><\/span><span style=\"font-style: normal;\"><b>d&ouml;rtgen<\/b><\/span><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\"> &ccedil;izimine bakalim.<\/span><\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">Dim<\/span><\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\"> kagit <\/span><\/span><\/font><font color=\"#0000ff\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">As<\/span><\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\"> Graphics = PictureBox1.CreateGraphics()<\/span><\/span><\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> kalem <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> Pen = <\/font><font color=\"#0000ff\">New<\/font><font color=\"#000000\"> Pen(Color.Red)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">kagit.DrawRectangle(kalem, 10, 20, 100, 100)<\/font><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Prensip ayni, baslangi&ccedil; ve bitis noktalarini belirliyor ve kalemimizle &ccedil;izimimizi yapiyoruz.<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">Bir de <\/span><\/span><span style=\"font-style: normal;\"><b>daire<\/b><\/span><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\"> (<\/span><\/span><i><span style=\"font-weight: normal;\">ellipse<\/span><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">) &ccedil;izelim:<\/span><\/span><\/i><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">Dim<\/span><\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\"> kagit <\/span><\/span><\/font><font color=\"#0000ff\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">As<\/span><\/span><\/font><font color=\"#000000\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\"> Graphics = PictureBox1.CreateGraphics()<\/span><\/span><\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> kalem <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> Pen = <\/font><font color=\"#0000ff\">New<\/font><font color=\"#000000\"> Pen(Color.DarkBlue)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">kagit.DrawEllipse(kalem, 150, 20, 100, 100)<\/font><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Bunu biraz a&ccedil;iklamak istiyorum. Visual Basic.NET daireyi baslica iki y&ouml;ntemle &ccedil;izer:<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">1-) &Ouml;nce bir d&ouml;rtgen taslagi i&ccedil;ine uygun daireyi &ccedil;izer;<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\">&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\"><img decoding=\"async\" loading=\"lazy\" width=\"376\" height=\"261\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/yuklenendosyalar\/image\/vb_daire.png\" \/><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">2-) Daireyi baslangi&ccedil; noktasi (<\/span><\/span><i><span style=\"font-weight: normal;\">X1,Y1<\/span><span style=\"font-style: normal;\"><span style=\"font-weight: normal;\">), genislik ve y&uuml;kseklige g&ouml;re &ccedil;izer.<\/span><\/span><\/i><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Sonu&ccedil;ta ikisi de ayni kapiya &ccedil;ikar.<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Simdi daha kapsamli bir uygulamayla &ouml;grendiklerimizi pekistirelim istiyorum.<\/font><\/div>\n<div style=\"margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-style: normal;\">Bir forum a&ccedil;alim ve bir <\/span><i>PictureBox <\/i><span style=\"font-style: normal;\">ile &uuml;&ccedil; adet buton eklelim. <\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp; <a href='www.yazilimmutfagi.com'>.<\/a><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><img decoding=\"async\" loading=\"lazy\" width=\"409\" height=\"378\" alt=\"\" src=\"http:\/\/www.yazilimmutfagi.com\/yuklenendosyalar\/image\/vb_Grafik.png\" \/><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Sonra da su kodlari ekleyelim:<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Public<\/font><font color=\"#0000ff\">Class<\/font><font color=\"#000000\"> Form1<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> x1 <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\"> = 100<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> y1 <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\"> = 100<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> x2 <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\"> = 50<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Dim<\/font><font color=\"#000000\"> y2 <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\"> = 50<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Private<\/font><font color=\"#0000ff\">Sub<\/font><font color=\"#000000\"> BalonCiz(<\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> tual <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> Graphics, _<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> KursunKalem <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> Pen, _<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> BaslangicNoktasi1 <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\">, _<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> BaslangicNoktasi2 <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\">, _<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> Genislik <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\">, _<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> Yukseklik <\/font><font color=\"#0000ff\">As<\/font><font color=\"#0000ff\">Integer<\/font><font color=\"#000000\">)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">tual.DrawEllipse(KursunKalem, BaslangicNoktasi1, BaslangicNoktasi2, Genislik, Yukseklik)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">End<\/font><font color=\"#0000ff\">Sub<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Private<\/font><font color=\"#0000ff\">Sub<\/font><font color=\"#000000\"> Form1_Load(<\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> sender <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> System.Object, <\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> e <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> System.EventArgs) <\/font><font color=\"#0000ff\">Handles<\/font><font color=\"#0000ff\">MyBase<\/font><font color=\"#000000\">.Load<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">BalonCiz(PictureBox1.CreateGraphics, Pens.Black, x1, y1, x2, y2)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">End<\/font><font color=\"#0000ff\">Sub<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Private<\/font><font color=\"#0000ff\">Sub<\/font><font color=\"#000000\"> btnBuyut_Click(<\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> sender <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> System.Object, <\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> e <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> System.EventArgs) <\/font><font color=\"#0000ff\">Handles<\/font><font color=\"#000000\"> btnBuyut.Click<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">PictureBox1.Refresh()<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">x2 += 5<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">y2 += 5<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">BalonCiz(PictureBox1.CreateGraphics, Pens.Black, x1, y1, x2, y2)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">End<\/font><font color=\"#0000ff\">Sub<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">Private<\/font><font color=\"#0000ff\">Sub<\/font><font color=\"#000000\"> btnKucut_Click(<\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> sender <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> System.Object, <\/font><font color=\"#0000ff\">ByVal<\/font><font color=\"#000000\"> e <\/font><font color=\"#0000ff\">As<\/font><font color=\"#000000\"> System.EventArgs) <\/font><font color=\"#0000ff\">Handles<\/font><font color=\"#000000\"> btnKucut.Click<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">PictureBox1.Refresh()<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">x2 -= 5<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">y2 -= 5<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font color=\"#000000\"><font size=\"2\" style=\"font-size: 10pt;\">BalonCiz(PictureBox1.CreateGraphics, Pens.Black, x1, y1, x2, y2)<\/font><\/font><\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><font color=\"#0000ff\">End<\/font><font color=\"#0000ff\">Sub<\/font><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Yukaridaki &ouml;rneklerden farkli olarak burada <i>kagit<\/i> ve <i>kalem<\/i> kullanmadim, <i>kagit<\/i> yerine dogrudan <b>PicrureBox<\/b>, <i>kalem<\/i> olusturmak yerine de hazir <b>Pen<\/b> nesnelerinden birini kullandim.<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Ayrica yine bir &#8216;balon &ccedil;izme&#8217; metodu yazdim ki hazir metodu istedigim an &ccedil;agirip kullanabileyim. <\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Metoduma 6 adet parametre ekledim. (Visual Basic.NET&#8217;te metotlar konusuna baska <a href=\"http:\/\/www.yazilimmutfagi.com\/MakaleOku.aspx?Makale=Metotlar&amp;MakaleKey=c83a10e4-be1f-4fb1-9b3b-7a04fb98b67d\">bu makalede<\/a> degindim, o yuzden ayrintiya girmiyorum.)<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm;\"><font size=\"2\" style=\"font-size: 10pt;\"><b>Refresh() <\/b><span style=\"font-weight: normal;\">metodu, adinda da anlasilacagi &uuml;zere, &ccedil;izim alanimizi, yani kagidigimizi degisikliklere karsi yineliyor ki, yeni olusan sekli g&ouml;rebilelim.<\/span><\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Bu konunun sonunda bir de &#8216;i&ccedil;i boyali&#8217; sekillere deginmek istiyorum. &Ouml;rnegin bir kare &ccedil;izelim:<\/font><\/div>\n<div style=\"font-style: normal; margin-bottom: 0cm; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: rgb(230, 230, 230) none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">PictureBox1.CreateGraphics.FillRectangle(Brushes.Black, 10, 10, 100, 100)<\/font><\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;\"><font size=\"2\" style=\"font-size: 10pt;\"><span style=\"font-weight: normal;\">Aradaki fark, <\/span><b>Draw<\/b><span style=\"font-weight: normal;\">&#8230; (&ccedil;iz) metodu yerine <\/span><b>Fill<\/b><span style=\"font-weight: normal;\"> (doldur) metodunu; <\/span><b>pen<\/b><span style=\"font-weight: normal;\"> (kalem) yerine ise <\/span><b>Brushes<\/b><span style=\"font-weight: normal;\"> (fir&ccedil;a) kullanmis olmamizdir.<\/span><\/font><\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Visual Basic.NET grafik k&uuml;t&uuml;phanesi &ccedil;ok zengin metotlar ve nesnelerle doludur. Bunlari deneyerek &ouml;grenebiliriz. Dilim d&ouml;nd&uuml;g&uuml;nce bir ka&ccedil;ini anlatmaya ve temel bilgileri vermeye &ccedil;alistim.<\/font><\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><font size=\"2\" style=\"font-size: 10pt;\">Bir baska makalede yine g&ouml;r&uuml;s&uuml;r&uuml;z insallah.<\/font><\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>\n<div style=\"background: transparent none repeat scroll 0% 0%; font-style: normal; margin-bottom: 0cm; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: normal;\"><br \/>\n&nbsp;<\/div>","protected":false},"excerpt":{"rendered":"<p>Bu makalede vb.NET&#39;in grafik k&#252;t&#252;phanesine g&#246;z atacagiz. Visual basic.net ile kare, daire, &#231;izgi&#8230; nasil &#231;izilir onu g&#246;recegiz. <\/p>\n","protected":false},"author":519,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[418],"tags":[4939,4203,4577,5985,5314,5570,5831],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/235"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/519"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}