about the DrawString method

T

Tony Johansson

Hello!

When I want to draw some text I use the DrawString method that has the
following signature.
graphicsobj.DrawString(string, font, brush, x, y);

I think is strange why Microsoft has defined that a brush is to be used when
a string is to be drawn.

It would have been more correct if a pen has been used instead.

I mean if I want to draw a rectangle I use a pen.
If I want to fill a rectangle I use a brush.

When I want to Draw some text it is more similar to Draw a rectangle then it
is to fill a rectangle.


//Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top