当前位置: 首页 > news >正文

国外有什么做网站的软件吗武汉网站seo

国外有什么做网站的软件吗,武汉网站seo,如何建设网站教程,设计师网页导航官网1 泛洪填充算法(Flood Fill Algorithm) 泛洪填充算法(Flood Fill Algorithm) ,又称洪水填充算法,是在很多图形绘制软件中常用的填充算法,最熟悉不过就是 windows 自带画图软件的油漆桶功能。 2 源程序 using System; using System.Collecti…

1 泛洪填充算法(Flood Fill Algorithm)

泛洪填充算法(Flood Fill Algorithm) ,又称洪水填充算法,是在很多图形绘制软件中常用的填充算法,最熟悉不过就是 windows 自带画图软件的油漆桶功能。

2 源程序

using System;
using System.Collections;
using System.Collections.Generic;

namespace Legalsoft.Truffer.Algorithm
{
    /// <summary>
    /// 洪水填充算法
    /// </summary>
    public static partial class Algorithm_Gallery
    {
        private static void Fill_4Directions(int[,] screen, int x, int y, int prevC, int newC)
        {
            int M = screen.GetLength(0);
            int N = screen.GetLength(1);

            if (x < 0 || x >= M || y < 0 || y >= N)
            {
                return;
            }
            if (screen[x, y] != prevC)
            {
                return;
            }
            screen[x, y] = newC;
            Fill_4Directions(screen, x + 1, y, prevC, newC);
            Fill_4Directions(screen, x - 1, y, prevC, newC);
            Fill_4Directions(screen, x, y + 1, prevC, newC);
            Fill_4Directions(screen, x, y - 1, prevC, newC);
        }

        public static void Flood_Fill(int[,] screen, int x, int y, int newC)
        {
            int prevC = screen[x, y];
            if (prevC == newC)
            {
                return;
            }
            Fill_4Directions(screen, x, y, prevC, newC);
        }
    }
}

3 代码格式

using System;
using System.Collections;
using System.Collections.Generic;namespace Legalsoft.Truffer.Algorithm
{/// <summary>/// 洪水填充算法/// </summary>public static partial class Algorithm_Gallery{private static void Fill_4Directions(int[,] screen, int x, int y, int prevC, int newC){int M = screen.GetLength(0);int N = screen.GetLength(1);if (x < 0 || x >= M || y < 0 || y >= N){return;}if (screen[x, y] != prevC){return;}screen[x, y] = newC;Fill_4Directions(screen, x + 1, y, prevC, newC);Fill_4Directions(screen, x - 1, y, prevC, newC);Fill_4Directions(screen, x, y + 1, prevC, newC);Fill_4Directions(screen, x, y - 1, prevC, newC);}public static void Flood_Fill(int[,] screen, int x, int y, int newC){int prevC = screen[x, y];if (prevC == newC){return;}Fill_4Directions(screen, x, y, prevC, newC);}}
}

http://www.hengruixuexiao.com/news/15937.html

相关文章:

  • 佛山新网站建设平台河南seo和网络推广
  • 美女和男人做鸡的网站广州seo网站
  • 新公司网站建设流程最有效的15个营销方法
  • 自己做的网站怎样弄网上搜索引擎优化到底是优化什么
  • 网站建设 北京关键词挖掘长尾词
  • 香港台湾人做攻略用什么网站竞价推广论坛
  • 有没有网站教做美食的网站域名查询网
  • 手机建网站公司seo综合诊断工具
  • 电子商务网站的建设和维护网站google搜索优化
  • 传统网站设计seo教程免费
  • 三把火科技网站设计杭州正规引流推广公司
  • 什么主题的网站容易做点seo公司官网
  • 互联网网站制作电商平台怎么搭建
  • 建设企业查询网站11月将现新冠感染高峰
  • 北京房山区住房和城乡建设委员会网站怎么seo关键词优化排名
  • 游戏类网站备案需要前置审批吗seo1现在怎么看不了
  • 长沙网站开发培训网店代运营哪个好
  • wordpress seo技巧seo相关ppt
  • 黑龙江建设教育信息网站首页百度投票人气排行榜入口
  • 学做饼干网站网络营销方案ppt
  • 网站流量怎么赚钱全国疫情高峰感染高峰
  • 做高端生活方式的网站百度指数怎么下载
  • 网络传媒有限公司百度seo软件优化
  • 网站制作企业首页静态网页设计与制作
  • 和网站建设相关的行业怎么开网店
  • 广州做包包的网站沙坪坝区优化关键词软件
  • 网站规划建设与管理维护课后答案wordpress外贸独立站
  • 建筑工程网站哪个好百度百科词条入口
  • 备案网站公共查询系统5g影讯5g天线在线观看免费视频
  • 上海劳务市场招聘信息查询常见的系统优化软件