change color of part of a screen

Post Reply
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

change color of part of a screen

Post by Jeff Barnes »

Hi Everybody,


I would like to change the background color of "part" of my screen.

In the following screen shot clip, I would like to change the background whenever the waveform dips below the red line. I need to still see the waveform. I can get the screen co-ordinates, I just need to know the color changing part.

Is this possible?

Thanks,

Jeff


[img]
www.can-soft.net/dl/ScreenShot.JPG
[/img]
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

If you don't use a dooted red line (use a continuous one) then you can use FloodFill()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

Take a look at this second screen shot ... This is an idea of what I am trying to do.


[img]
www.can-soft.net/dl/ScreenShot2.JPG
[/img]


Thanks,
Jeff
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Jeff,

Try drawing a box then use floodFill(). Use the same color pen for both.

Maybe you will have to redraw the gridlines and graph afterward.

James
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

Do you mean those vertical gray rectangles ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

Yes, the grey areas are what I would like to add when needed.


Jeff
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

You may paint them using Rectangle() before painting the lines
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply