문제

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

도움이 되었습니까?

해결책

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(...)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top