• vb.net 绘制sin函数


    Public Class Form1
    
        Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
            Dim G As Graphics
            G = Me.CreateGraphics()
            Dim PS(1000) As Point
            Dim I
            For I = 0 To 1000
                PS(I).X = I
                PS(I).Y = Me.Height / 2 - 10 * Math.Sin(I / 10)
            Next I
            Dim x As Integer = Me.ClientSize.Width / 2
            Dim y As Integer = Me.ClientSize.Height / 2 + 20
            G.DrawLine(Pens.Red, x, 100, x, 200)
            G.DrawLine(Pens.Red, 0, y, 300, y)
            G.DrawLines(Pens.Red, PS)
        End Sub
    End Class


  • 相关阅读:
    curl continue
    actor
    nginx
    jmx additional port
    diff
    lsof
    zk reconnect
    Python:Python基础(一)
    Python:初识Python(二)
    Python:初识Python(一)
  • 原文地址:https://www.cnblogs.com/xinyuyuanm/p/3055202.html
Copyright © 2020-2023  润新知