?
Solved

Creating a CRgn from a given point

Posted on 1997-12-20
3
Medium Priority
?
272 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

649 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