Solved

Creating a CRgn from a given point

Posted on 1997-12-20
3
256 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
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 260 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 96
Installing Microsoft R server on REDHAT or SUSE Linux 4 137
Folder Comparison 12 54
wordcount challenge 11 121
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

773 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