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

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - 闫磊博客

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);
        }