Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Association Pin
Monty230-Apr-04 18:38
Monty230-Apr-04 18:38 
GeneralDetecting codecs without DirectShow. Pin
haust29-Apr-04 21:47
haust29-Apr-04 21:47 
GeneralRe: Detecting codecs without DirectShow. Pin
Anthony_Yio29-Apr-04 23:11
Anthony_Yio29-Apr-04 23:11 
GeneralRe: Detecting codecs without DirectShow. Pin
Mike Dimmick30-Apr-04 2:40
Mike Dimmick30-Apr-04 2:40 
GeneralFlood fill of all image objects simultaneously Pin
Kolich29-Apr-04 20:45
Kolich29-Apr-04 20:45 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw30-Apr-04 10:55
John R. Shaw30-Apr-04 10:55 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich4-May-04 19:11
Kolich4-May-04 19:11 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw4-May-04 20:52
John R. Shaw4-May-04 20:52 
Well, filling multiple object simultaneously would require a great deal more work and would provide no speed improvement (in fact it would slow the whole process down). Although it would look great, if you actualy were seeing the objects filling.

Now this could be accomplished by using some sort of stepping where you remove the while loop in the quickfill function and have it return whether or not it is finished after each call. This would require some flag to note if it is the first time the function is called or some sort of initialization function that must be call first; in other word it would have to rember it's state. No matter how you approach the problem you are still dealing with multiple objects.

Now as for giving the illustion of them all being filled simultaneously, that should not be to difficult. You simply call quickfill 10 times but do not display the results until after all 10 are filled.

If speed becomes a problem, then modify quickfill to take a CDibData object insted so that one will not need to be created each time quickfill is called. Then copy the result back to the original bitmap, after filling it is complete. This, of cource, assumes that the objects you are refering to are graphic objects that are all located on the same bitmap.

The only advantage you have using quickfill is that you have the code to modify as you see fit. If you are developing for the desktop then the illusion of simultaneously filling can be accomplished as stated above using FloodFill.

I could do what you are attemping, by using one of the methods stated above. Just rember the key is the quickfill function, if you understand that then you can almost ignore the helper functions.

No matter how you slice it someone has to write the function to fill all those objects, and that appears to be you.

Good Luck!

P.S. As for the Opera thing I can only ass-u-me that your machine was busy doing something else.

INTP
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich4-May-04 22:23
Kolich4-May-04 22:23 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw5-May-04 9:03
John R. Shaw5-May-04 9:03 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich6-May-04 20:10
Kolich6-May-04 20:10 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw8-May-04 4:49
John R. Shaw8-May-04 4:49 
GeneralVK code for subtract Pin
Tyrus18229-Apr-04 20:24
Tyrus18229-Apr-04 20:24 
GeneralRe: VK code for subtract Pin
ohadp29-Apr-04 21:05
ohadp29-Apr-04 21:05 
GeneralThird party toolbar Pin
*Dreamz29-Apr-04 20:01
*Dreamz29-Apr-04 20:01 
GeneralRe: Third party toolbar Pin
nguyenvhn29-Apr-04 20:48
nguyenvhn29-Apr-04 20:48 
GeneralRe: Third party toolbar Pin
*Dreamz2-May-04 18:15
*Dreamz2-May-04 18:15 
QuestionCall another program from my project ?? Pin
Mughi29-Apr-04 19:45
Mughi29-Apr-04 19:45 
AnswerRe: Call another program from my project ?? Pin
GermanGeorge29-Apr-04 22:16
GermanGeorge29-Apr-04 22:16 
GeneralRe: Call another program from my project ?? Pin
Mughi29-Apr-04 22:49
Mughi29-Apr-04 22:49 
GeneralRe: Call another program from my project ?? Pin
GermanGeorge29-Apr-04 23:15
GermanGeorge29-Apr-04 23:15 
GeneralRe: Call another program from my project ?? Pin
Mughi2-May-04 19:05
Mughi2-May-04 19:05 
GeneralRe: Call another program from my project ?? Pin
Jitendra gangwar30-Apr-04 2:26
Jitendra gangwar30-Apr-04 2:26 
GeneralRe: Call another program from my project ?? Pin
Mughi2-May-04 19:07
Mughi2-May-04 19:07 
GeneralChanging cview's size .. Pin
AbinThomas29-Apr-04 19:25
AbinThomas29-Apr-04 19:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.