惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

博客园 - 闫磊博客

C#获取当前时间的各种格式 ArcEngine这本书怎么样 asp.net 中Session和Application使用 ASP.NET页面间的传值的几种方法 ArcGIS Engine开发-TOCControl中实现图层的拖动 asp.net学习日志 - 闫磊博客 - 博客园 C# 获取局域网内IP的MAC Delphi中MediaPlayer控件的使用 arcgis中数字模糊查询 - 闫磊博客 - 博客园 1:25万地形数据库数据说明 国土资源部2009.12.31 关于县(市)级土地调查数据库建库软件数据更新功能测试结果(第一批)的公告 arcgis python 列举所有dataset ListDatasets - 闫磊博客 arcgis python 列举所有栅格ListRasters - 闫磊博客 arcgis python 获得消息的个数 - 闫磊博客 arcgis python 获得参数个数 arcgis python 数据更新 - 闫磊博客 C#如何将dataGridView内容载入DataSet中 python 例子生成随机数,读文件 python获得当前目录下文件,并写到name.txt
ColorRamp对象 生成色带
闫磊博客 · 2009-12-29 · via 博客园 - 闫磊博客

private void button6_Click(object sender, EventArgs e)
{
    //创建一个新AlgorithmicColorRampClass对象
    IAlgorithmicColorRamp algColorRamp = new AlgorithmicColorRampClass();
    //创建起始颜色对象
    IRgbColor startColor = new RgbColor();
    startColor.Red = 255;
    startColor.Green = 0;
    startColor.Blue = 0;
    //创建终止颜色对象
    IRgbColor endColor = new RgbColor();
    endColor.Red = 0;
    endColor.Green = 255;
    endColor.Blue = 0;
    //设置AlgorithmicColorRampClass的起止颜色属性
    algColorRamp.ToColor = startColor;
    algColorRamp.FromColor = endColor;
    //设置梯度类型
    algColorRamp.Algorithm = esriColorRampAlgorithm.esriCIELabAlgorithm;
    //设置颜色带颜色数量
    algColorRamp.Size = 5;
    //创建颜色带
    bool bture = true;
    algColorRamp.CreateRamp(out bture);
    //使用IEnumColors获取颜色带
    IEnumColors pEnumColors = null;
    pEnumColors = algColorRamp.Colors;
    //设置5个picturebox的背景色为产生颜色带的5个颜色
    this.pictureBox1.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
    this.pictureBox2.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
    this.pictureBox3.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
    this.pictureBox4.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
    this.pictureBox5.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
}
来自:http://bbs.esrichina-bj.cn/ESRI/thread-46784-1-1.html

private void button6_Click(object sender, EventArgs e)
        {
            IRandomColorRamp pRandomColorRamp = new RandomColorRampClass();

            //** 制作一系列介于橘黄色和蓝绿色之间的随机颜色
            pRandomColorRamp.StartHue = 40;
            pRandomColorRamp.EndHue = 120;
            pRandomColorRamp.MinValue = 65;
            pRandomColorRamp.MaxValue = 90;
            pRandomColorRamp.MinSaturation = 25;
            pRandomColorRamp.MaxSaturation = 45;
            pRandomColorRamp.Size = 20;
            pRandomColorRamp.Seed = 23;

            bool bture = true;
            pRandomColorRamp.CreateRamp(out bture);


            IEnumColors pEnumColors = pRandomColorRamp.Colors;

            //设置5个picturebox的背景色为产生颜色带的5个颜色
            this.pictureBox1.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
            this.pictureBox2.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
            this.pictureBox3.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
            this.pictureBox4.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
            this.pictureBox5.BackColor = ColorTranslator.FromOle(pEnumColors.Next().RGB);
        }