资源简介
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个文件信息
- 上一篇:C#常用源码
- 下一篇:VisionPro控件在WPF 应用
相关资源
- C#常用源码
- VS2019图书管理系统-C#
- C#写的运动控制板卡点胶机源码
- 自己写的C#左侧导航框架
- c# EasyModbus Client
- C# 下拉框多选
- OPCUA:C#使用OpcUaHelper开源库开发客M
- C#曲线图控件
- C# HTTP Get Post Demo
- C# winform简洁漂亮的图形界面库SunnyU
- C# MVC根据Word模板导出Word
- 周立功CAN通用上位机例程(C#)
- C# 斑马标签打印 (WEBamp;WINFORM)
- C#源码读取DXF文件
- C#证件照排版器
- 学生宿舍管理系统(毕业设计 C#实现
- C#动态生成voronoi图
- C# 网吧管理系统源码(附数据库脚本
- 打印机监控(C#源码)
- C# 记事本-
- C#对接中控指纹仪live20r Demo
- c#语言实现K短路算法
- C# QQ邮箱验证码
- c#区块链编程
- C#开发的看盘小工具
- C#的Ftp客户端+服务端源码
- C# 获取所有网卡IP信息
- C#UDP连接
- c# udp通信例程(上位控制程序)
- C#使用 谷歌身份认证器(GoogleAuthent
评论
共有 条评论