1 / 9

Visual Basic ile Grafik

Visual Basic ile Grafik. Grafik Nesneler. DrawArc Yay çizer DrawBezier Kübik kapalı eğri çizer DrawBeziers Kübik kapalı eğriler serisi çizer DrawClosedCurve Tanımlanan dizi noktaları kullanılarak kapalı eğriler çizer DrawCurve Tanımlanan dizi noktaları kullanılarak eğriler çizer

niel
Download Presentation

Visual Basic ile Grafik

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VisualBasic ile Grafik

  2. Grafik Nesneler DrawArc Yay çizer DrawBezier Kübik kapalı eğri çizer DrawBeziers Kübik kapalı eğriler serisi çizer DrawClosedCurve Tanımlanan dizi noktaları kullanılarak kapalı eğriler çizer DrawCurveTanımlanan dizi noktaları kullanılarak eğriler çizer DrawEllipse Elips veya Çember çizer DrawImage Bir nesne çizer(resim) DrawLine Çizgi çizer DrawPathGraphicsPath tarafından belirlenen eğri ve çizgiler çizer DrawPie Pasta dilimi çizer DrawPolygon Bir poligon çokgen çizer DrawRectangle Dikdörtgen çizer DrawString Metin çizer

  3. Grafik Nesneler FillEllipse Sınırları belirlenmiş bir elipsin içini boyar FillPath Belirlenen yolun içini boyar FillPie Pasta diliminin içini boyar FillPolygon Dizi noktaları tarafından belirlenmiş çokgenin içini boyar FillRectangle Dikdörtgenin içini boyar FillRectangles Dikdörtgenler serisinin içini boyar FillRegion Bir bölgenin içini boyar

  4. DrawLine PrivateSub Form1_Paint(ByValsender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) HandlesMyBase.Paint Dim g As Graphics = e.Graphics Dim pn As New Pen(Color.Blue, 5) Dim pnt1 As New Point(10, 10) Dim pnt2 As New Point(100, 100) g.DrawLine(pn, pnt1, pnt2) EndSub

  5. DrawEllipse PrivateSub Form1_Paint(ByValsender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) HandlesMyBase.Paint Dim g As Graphics = e.Graphics Dimpen As New Drawing.Pen(System.Drawing.Color.Red, 5) Me.CreateGraphics.DrawEllipse(pen, 10, 10, 100, 100) pen.Dispose() EndSub

  6. DrawString PrivateSub Form1_Paint(ByValsender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) HandlesMyBase.Paint Dim g As Graphics = e.Graphics Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 5) Me.CreateGraphics.DrawEllipse(pen, 10, 10, 100, 100) pen.Dispose() Me.CreateGraphics.DrawString("Şekil ismi", New Font("Arial", 12, FontStyle.Bold.Underline), Brushes.Black, 12, 50) EndSub

  7. DrawPie PrivateSub Form1_Paint(ByValsender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) HandlesMyBase.Paint Dim g As Graphics = e.Graphics Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 5) Me.CreateGraphics.DrawPie(pen, 5, 5, 200, 200, 0, -90) pen.Dispose() Me.CreateGraphics.DrawString("Yay", New Font("Arial", 12, FontStyle.Bold.Underline), Brushes.Black, 110, 50) EndSub

  8. MouseUp Mouse ile tıklanan yere çember çizimi : ProtectedOverridesSubOnMouseUp(ByVal e As System.Windows.Forms.MouseEventArgs) Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 5) Me.CreateGraphics.DrawEllipse(pen, e.X, e.Y, 50, 50) Me.CreateGraphics.DrawEllipse(pen, e.X-25, e.Y-25, 50, 50) pen.Dispose() EndSub

  9. HatchBrush, FillRectangle ImportsSystem.Drawing.Drawing2D ProtectedOverridesSubOnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim g As Graphics = e.Graphics Dim firca1 As New HatchBrush(HatchStyle.DarkHorizontal, Color.Tomato) Dim alan1 As New Rectangle(0, 0, Me.Width, 50) g.FillRectangle(firca1, alan1) EndSub

More Related