• 大小: 0.08M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-06-15
  • 语言: C#
  • 标签: 画图  C#  

资源简介

c#画图

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace drawLine
{
    public partial class ColorSelect : Form
    {

        public int r=0 g=0 b=0;
        public Form1 main;
        public ColorSelect(Form1 f)
        {
            InitializeComponent();
            label1.Text = “R:0“;
            label2.Text = “G:0“;
            label3.Text = “B:0“;
            main = f;
            panel1.BackColor = Color.FromArgb(rgb);
        }

        private void trackBar3_Scroll(object sender EventArgs e)
        {
            r = trackBar3.Value;
            panel1.BackColor =Color.FromArgb(r g b);
            label1.Text = “R:“ + r;
        }

        private void trackBar2_Scroll(object sender EventArgs e)
        {
            g = trackBar2.Value;
            panel1.BackColor = Color.FromArgb(r g b);
            label2.Text = “G:“ + g;
        }

        private void trackBar1_Scroll(object sender EventArgs e)
        {
            b = trackBar1.Value;
            panel1.BackColor = Color.FromArgb(r g b);
            label3.Text = “B:“ + b;
        }

        private void button1_Click(object sender EventArgs e)
        {
            main.tempColor = Color.FromArgb(r g b);
            this.Close();
        }

        private void button2_Click(object sender EventArgs e)
        {
            this.Close();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1538  2009-06-17 02:16  cSharpdrawLine\Backup\drawLine\ColorSelect.cs

     文件       7127  2009-06-17 02:02  cSharpdrawLine\Backup\drawLine\ColorSelect.Designer.cs

     文件       5814  2009-06-17 02:02  cSharpdrawLine\Backup\drawLine\ColorSelect.resx

     文件       3592  2009-06-17 02:07  cSharpdrawLine\Backup\drawLine\drawLine.csproj

     文件       7669  2009-06-17 04:01  cSharpdrawLine\Backup\drawLine\Form1.cs

     文件      16141  2009-06-17 03:47  cSharpdrawLine\Backup\drawLine\Form1.Designer.cs

     文件       6207  2009-06-17 03:47  cSharpdrawLine\Backup\drawLine\Form1.resx

     文件        467  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine\Program.cs

     文件       1188  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine\Properties\AssemblyInfo.cs

     文件       2870  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine\Properties\Resources.Designer.cs

     文件       5612  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine\Properties\Resources.resx

     文件       1091  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine\Properties\Settings.Designer.cs

     文件        249  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine\Properties\Settings.settings

     文件        913  2009-06-08 03:14  cSharpdrawLine\Backup\drawLine.sln

    ..A..H.     18432  2009-06-17 04:11  cSharpdrawLine\Backup\drawLine.suo

     文件      20480  2011-08-19 15:37  cSharpdrawLine\drawLine\bin\Debug\drawLine.exe

     文件      44544  2011-08-19 15:37  cSharpdrawLine\drawLine\bin\Debug\drawLine.pdb

     文件      14328  2011-08-19 15:39  cSharpdrawLine\drawLine\bin\Debug\drawLine.vshost.exe

     文件        490  2007-07-21 01:33  cSharpdrawLine\drawLine\bin\Debug\drawLine.vshost.exe.manifest

     文件       1538  2009-06-17 02:16  cSharpdrawLine\drawLine\ColorSelect.cs

     文件       7127  2009-06-17 02:02  cSharpdrawLine\drawLine\ColorSelect.Designer.cs

     文件       5814  2009-06-17 02:02  cSharpdrawLine\drawLine\ColorSelect.resx

     文件       4000  2009-05-06 08:15  cSharpdrawLine\drawLine\data.dat

     文件       3800  2011-08-19 15:36  cSharpdrawLine\drawLine\drawLine.csproj

     文件       7669  2009-06-17 04:01  cSharpdrawLine\drawLine\Form1.cs

     文件      16141  2009-06-17 03:47  cSharpdrawLine\drawLine\Form1.Designer.cs

     文件       6207  2009-06-17 03:47  cSharpdrawLine\drawLine\Form1.resx

     文件        180  2011-08-19 15:37  cSharpdrawLine\drawLine\obj\Debug\drawLine.ColorSelect.resources

     文件       1028  2011-08-19 15:39  cSharpdrawLine\drawLine\obj\Debug\drawLine.csproj.FileListAbsolute.txt

     文件        780  2011-08-19 15:37  cSharpdrawLine\drawLine\obj\Debug\drawLine.csproj.GenerateResource.Cache

............此处省略35个文件信息

评论

共有 条评论