Flood fill [message #436817] |
Tue, 25 May 2004 09:05 |
Eclipse User |
|
|
|
Originally posted by: lasyn_no_spam.postmark.net
I'm developing a charting application(currently only line charts) in
SWT. How can I flood fill a certain region with a chosen color.
fillXX() APIs work only for standard geometric shapes.
Take the scenario where I'm plotting the sine wave.
I need to fill the upper & lower part of the sine wave with color A
and color B respectively. I'm using double buffering. I didnt seem to
find any charting/graph implementation done using SWT. Any suggestions
would be helpful.
|
|
|
|
Re: Flood fill [message #436902 is a reply to message #436819] |
Wed, 26 May 2004 05:11 |
Eclipse User |
|
|
|
Originally posted by: lasyn_no_spam.postmark.net
The area I need to flood fill might be the region between two graphs(say
speed vs time & accelaration vs time). The graph is continually plotted
& I need to fill the region between these two graphs with a chosen
color. I'm not sure how fillPolygon might help here. It will be too
complex to get the vertices of a polygon that optimally covers the
region I want to paint. Thanks for your response.
Konstantin Scheglov wrote:
> Aleph <lasyn_no_spam@postmark.net> wrote:
>
>
>>I'm developing a charting application(currently only line charts) in
>>SWT. How can I flood fill a certain region with a chosen color.
>>fillXX() APIs work only for standard geometric shapes.
>
> fillPolygon ?
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04700 seconds