Hi.
Is it possible to fill a rectangle with a ratio of colour, for example fill a rectangle with 50% red so it's pale red?

I want to be able to specify the shade of colour in a number form if possible.

So far I've only found linear gradiants which aren't much use to me :confused:

Thanks for any and all help.

Andrew.

I REALLY need some help on this please. Any suggestions?

Hi,

If you are using System.Drawing (GDI+), you can use "System.Drawing.Color.FromArgb(Int32, Int32, Int32)".

Loren Soth

So I'd have to work out the RGB values for the colour and the shade of colour? :S

Isn't there a nice and simple "transparancy" option? :(

Thanks for the help :)

Hi,

I am not sure but the four parametered version of the FromArgb takes Alpha Red Green Blue (where Alpha is opacity/trasnparency) but still you must adjust the GDI+'s brush or copy mode I guess.

Loren Soth

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.