绝对可以实现的 c# 绘制正弦函数 Bitmap bitM = new Bitmap(this.pictureBox1.Width, this.pictureBox1.Height); Graphics g = Graphics.FromImage(bitM); g.Clear(Color.White); const int size = 300; double[] x = new double[size]; Pen pen = new Pen(Color.Teal); //画正弦曲线的横轴间
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace AddressList { /// /// Form1 的摘要说明。 /// public class AddressList : System.Windows.Forms.Form { priva
用VB.NET做的小游戏--打地鼠 Public Class Form1 Inherits System.Windows.Forms.Form Dim pic As New PictureBox Dim goal As Integer Dim i As Integer Dim j As Integer Dim xx1() As Integer = {135, 277, 417} Dim xx2() As Integer = {157, 367} Dim xx3() As Integer = {
//记录时间 private void timer2_Tick(object sender, EventArgs e) { time++; int s = time; if (time >= 1000) s = time - time / 1000 * 1000; int p = s / 100; int q = (s - p * 100) / 10; int r = s - p * 100 - q * 10; this.pictureBox1.Image = Get_TimeImage
c#幻灯片源代码 public void test() { string path=(@"C:\\Documents and Settings\Administrator\桌面\img"); DirectoryInfo di = new DirectoryInfo(path); FileInfo[] fi = di.GetFiles("*.jpg"); progressBar1.Maximum = fi.Length; //progressBar1.Value = 0; int i = 0;
Public Class 控件代码 '全局变量 - TrackBar1 改变图片大小使用 Dim l As Double Dim t As Double #Region "时间控件 标签控件 链接标签控件 日期控件 下拉菜单控件 " '窗体的设置 Private Sub 控件代码_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '设置时间控件启用 Timer1.Enable