Question

c# sharpdevelop , drawing rectangle or circle and fill it with colour #fffffff

I'm using colour code like this #ffffff in my application. I need to draw a rectangle or circle and fill it with a specific colour by code.

Is there are anyway to do that?

e.Graphics.DrawRectangle(Pens.Black,55,400,715,20);

This code draw black not filled ..

How can I fill it with specific colour using codes like this #fffffff?

I google it but I couldn't find anything

Was it helpful?

Solution

I don't know C# at all, but I use Java, and its Graphics class has a drawRect and a fillRect method, so see if there is a method called e.Graphics.FillRectangle(...)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top