How to fill a ellipse
-
How do you fill a ellipse on a CDC without Floodfill? thanks
-
How do you fill a ellipse on a CDC without Floodfill? thanks
Select a different-colored brush into the DC before drawing. There's also
FillRect()
.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Select a different-colored brush into the DC before drawing. There's also
FillRect()
.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Can you use FillRect() for an Ellipse or was that a morning glitch? I'm having those myself this morning. :)
bob16972 wrote:
Can you use FillRect() for an Ellipse...
I guess not. I was just assuming you'd give it a starting point somewhere within the shape and it would fill until it reached the edges. I guess that's what
FloodFill()
is for! :-O
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Can you use FillRect() for an Ellipse or was that a morning glitch? I'm having those myself this morning. :)
thanks yes it's very easy to fill a ellipse with current selected brush. in fact my problem it's to do a pie chart. I draw a pie chart with 3 parts. How i can fill with colore each parts??
-
thanks yes it's very easy to fill a ellipse with current selected brush. in fact my problem it's to do a pie chart. I draw a pie chart with 3 parts. How i can fill with colore each parts??
jerome_data wrote:
I draw a pie chart with 3 parts. How i can fill with colore each parts??
Can you call
Pie()
three times, using a different brush each time? [edit] I just tried this and it worked fine. [/edit]
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
jerome_data wrote:
I draw a pie chart with 3 parts. How i can fill with colore each parts??
Can you call
Pie()
three times, using a different brush each time? [edit] I just tried this and it worked fine. [/edit]
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
yes it's work very fine thanksssss i need to do now a code to calculate coordinate point from a percent value. thanks
-
yes it's work very fine thanksssss i need to do now a code to calculate coordinate point from a percent value. thanks
jerome_data wrote:
i need to do now a code to calculate coordinate point from a percent value.
See this article[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
-
Can you use FillRect() for an Ellipse or was that a morning glitch? I'm having those myself this morning. :)
bob16972 wrote:
Can you use FillRect() for an Ellipse
Sure you can! It has the side-effect of squaring off the ellipse's corners though ;)
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder