• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: C#
  • 标签: c#  

资源简介


C#屏幕吸色器 HTML颜色 RGB颜色值 和片云工作室工具类似

资源截图

代码片段和文件信息

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

namespace PickColor
{
    public partial class Form11 : Form
    {
        [DllImport(“user32.dll“)]//取设备场景 
        private static extern IntPtr GetDC(IntPtr hwnd);//返回设备场景句柄 
        [DllImport(“gdi32.dll“)]//取指定点颜色 
        private static extern int GetPixel(IntPtr hdc Point p);
        Timer tim = new Timer();
        public Form11()
        {
            InitializeComponent();
            btnPick.MouseDown += new MouseEventHandler(btnPick_MouseDown);
            btnPick.MouseUp += new MouseEventHandler(btnPick_MouseUp);
            hsbR.ValueChanged += new EventHandler(hsbR_ValueChanged);
            hsbG.ValueChanged += new EventHandler(hsbR_ValueChanged);
            hsbB.ValueChanged += new EventHandler(hsbR_ValueChanged);
        

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

     文件      13824  2013-06-27 16:26  PickColor\PickColor\bin\Debug\PickColor.exe

     文件      30208  2013-06-27 16:26  PickColor\PickColor\bin\Debug\PickColor.pdb

     文件      11600  2013-06-27 16:27  PickColor\PickColor\bin\Debug\PickColor.vshost.exe

     文件       3058  2013-06-27 16:26  PickColor\PickColor\Form11.cs

     文件      12473  2013-06-27 16:25  PickColor\PickColor\Form11.designer.cs

     文件       5817  2013-06-27 15:34  PickColor\PickColor\Form11.resx

     文件       2152  2013-06-27 15:31  PickColor\PickColor\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6289  2013-06-27 16:26  PickColor\PickColor\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        342  2013-06-27 15:34  PickColor\PickColor\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        790  2013-06-27 15:34  PickColor\PickColor\obj\x86\Debug\GenerateResource.write.1.tlog

     文件        917  2013-06-27 16:27  PickColor\PickColor\obj\x86\Debug\PickColor.csproj.FileListAbsolute.txt

     文件      13824  2013-06-27 16:26  PickColor\PickColor\obj\x86\Debug\PickColor.exe

     文件        180  2013-06-27 15:34  PickColor\PickColor\obj\x86\Debug\PickColor.Form11.resources

     文件      30208  2013-06-27 16:26  PickColor\PickColor\obj\x86\Debug\PickColor.pdb

     文件        180  2013-06-27 15:32  PickColor\PickColor\obj\x86\Debug\PickColor.Properties.Resources.resources

     文件       3682  2013-06-27 15:32  PickColor\PickColor\PickColor.csproj

     文件        491  2013-06-27 15:32  PickColor\PickColor\Program.cs

     文件       1360  2013-06-27 15:31  PickColor\PickColor\Properties\AssemblyInfo.cs

     文件       2868  2013-06-27 15:31  PickColor\PickColor\Properties\Resources.Designer.cs

     文件       5612  2013-06-27 15:31  PickColor\PickColor\Properties\Resources.resx

     文件       1094  2013-06-27 15:31  PickColor\PickColor\Properties\Settings.Designer.cs

     文件        249  2013-06-27 15:31  PickColor\PickColor\Properties\Settings.settings

     文件        869  2013-06-27 15:31  PickColor\PickColor.sln

    ..A..H.     24576  2013-06-27 15:31  PickColor\PickColor.suo

     目录          0  2013-06-27 15:31  PickColor\PickColor\obj\x86\Debug\TempPE

     目录          0  2013-06-27 16:26  PickColor\PickColor\obj\x86\Debug

     目录          0  2013-06-27 15:32  PickColor\PickColor\bin\Debug

     目录          0  2013-06-27 15:32  PickColor\PickColor\bin\Release

     目录          0  2013-06-27 15:31  PickColor\PickColor\obj\x86

     目录          0  2013-06-27 15:32  PickColor\PickColor\bin

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

评论

共有 条评论