Solved

Creating a CRgn from a given point

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
xyBalance chalenge 58 88
tripleUp challenge 7 65
abstract class with all non abstract mentods 6 71
Line meaning 9 75
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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. …
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now