Graphics

Area Fill Algorithms

Flood Fill vs Boundary Algorithms

Objective – Color the entire area with the color already present in the area.

Flood fill algorithm

This method is useful when area to be filled has multiple colors in it.

Find any point in this area and replace it with fill color.

Start filling the surrounding points using the 4-connected or 8- connected approach with the color of the seed point identified in the previous step.

Keep on filling the surrounding area till the time you see a point which does not have same color as interior area.

Objective – Color the entire area with the color already present in the area.

Boundary fill algorithm

This method is used when area to be colored is defined with single color boundary.

In Boundary filled algorithm the interior points of the area are replaced with a new color.

The interior points are not filled with new color in fact they are replaced by new points.

This algorithm works only if the to be filled color and the color of the boundary of the region are not same.

sr_2018

Recent Posts

Difference between Feasibility study & Business Plan | Unit 3 | Enpreneurial journey | Class 11

Conducted before a business plan: tests if an idea or project is viable

6 months ago

Business Plan | Unit 3 | Enprepreneurial journey | CLass11

A Business Plan is a written summary of various elements involved in starting a new…

6 months ago

Unit 6 | Resource MobiliSation | Class 12

MEANING OF FINANCE: 'Finance' refers to funds or monetary resources needed by individuals, business houses…

6 months ago

Generating Ideas | Unit 3 | Entrepreneurial Journey

Generating Ideas and a feasibility study is a careful, step-by-step process that helps entrepreneurs figure…

6 months ago

Business Idea | Unit 3 | Entreprenurial Journey

A business idea is a thought or plan for a product or service that you…

6 months ago

Entrepreneurial Values & Motivation | Unit 2 | Class 11

theory was proposed by Abraham Maslow and is based on the assumption that people are…

6 months ago