PC Review


Reply
Thread Tools Rate Thread

about the DrawString method

 
 
Tony Johansson
Guest
Posts: n/a
 
      7th Dec 2010
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about the drawString method Tony Johansson Microsoft C# .NET 2 9th Dec 2010 03:19 PM
How to get the appropriate font size for DrawString method? =?Utf-8?B?R2FyeQ==?= Microsoft C# .NET 2 4th Aug 2006 04:13 PM
Drawstring method =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= Microsoft Dot NET Framework Forms 1 24th Oct 2004 03:38 PM
Word wrapping on DrawString method Marcos Cruz Arjona Microsoft Dot NET Compact Framework 4 22nd May 2004 07:57 PM
DrawString Method Mark Keats Microsoft C# .NET 1 1st Aug 2003 06:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.