?
Solved

Creating a CRgn from a given point

Posted on 1997-12-20
3
Medium Priority
?
268 Views
Last Modified: 2013-11-19
I want to perform a flood fill operation with a given point. But first I want to create a region by detecting the outline and make some modifications.

Can someone let me know a good flood fill source code/algorithm for irregular shapes, which can also help me create a CRgn object of the shape to be filed.
0
Comment
Question by:akhilesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:akhilesh
ID: 1312775
Adjusted points to 262
0
 

Expert Comment

by:Raffaele
ID: 1312776
I can't understand well.
MFC gives you the ExtFloodFill to fill a clipping region.
You can create a clipping region with the CRgn class members.
What else do you need? Why do you need to perform manually the fill?
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 520 total points
ID: 1312777
So you are trying to generate a CRgn from some arbitrary existing shapes and a starting point.

This, of course, isn't required for doing the flood fill.  I assume that you want the CRgn for other purposes.

A flood fill algorithm can be easily adapted to give you the points on the boundary.  The, once you have the points, you should be able to generate a region.

Is this what you want???
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question