Click here to Skip to main content
15,921,156 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionultratoolbar Pin
elayath3-Jan-06 18:15
elayath3-Jan-06 18:15 
QuestionShorten a path using an ellipsis... Pin
Ray Cassick3-Jan-06 9:55
Ray Cassick3-Jan-06 9:55 
QuestionHow Disable EvenLog checking...? Pin
PhrankBooth3-Jan-06 9:23
PhrankBooth3-Jan-06 9:23 
AnswerRe: How Disable EvenLog checking...? Pin
VenkataRamana.Gali3-Jan-06 9:52
VenkataRamana.Gali3-Jan-06 9:52 
AnswerRe: How Disable EvenLog checking...? Pin
Dave Kreskowiak3-Jan-06 10:13
mveDave Kreskowiak3-Jan-06 10:13 
QuestionHow to create Managed Extensions Framework 1.1 assembly using VS2005 Pin
Adi Arbel3-Jan-06 6:35
Adi Arbel3-Jan-06 6:35 
AnswerRe: How to create Managed Extensions Framework 1.1 assembly using VS2005 Pin
TheGreatAndPowerfulOz5-Jan-06 15:11
TheGreatAndPowerfulOz5-Jan-06 15:11 
QuestionGDI+ unsharp DrawString Pin
Ifoko2-Jan-06 20:53
Ifoko2-Jan-06 20:53 
Hi!

I want to draw a Map for a Webgame (C#, VWD 2005 EE). I draw Lands, units...
But unfortunatly the borders of the String are not "clearly", good, drawn, as you can see at the link of the german csharp forum. There is a picture where you can see what I mean.

http://www.mycsharp.de/wbb2/thread.php?threadid=13557[^]

So I create the Graphics Device.
G_WorldMap = new Bitmap(3500, 2000, PixelFormat.Format32bppArgb);<br />
          Graphics newBmpGraphics = Graphics.FromImage(G_WorldMap);<br />


So I draw the strings

          // Draw Names and IPC<br />
            foreach (Land land in G_Game.Lands.LandsAL)<br />
            {<br />
                Font font = new Font("Comic Sans MS", 10);<br />
                SizeF stringSize = newBmpGraphics.MeasureString(land.Name, font);<br />
                newBmpGraphics.DrawString(land.Name, font, new SolidBrush(Color.Black),<br />
                    new Point(land.CenterX - (int)(stringSize.Width / 2), land.CenterY - (int)(stringSize.Height / 2)));<br />
<br />
                font = new Font("Courier", 12, FontStyle.Bold);<br />
                stringSize = newBmpGraphics.MeasureString(land.Id.ToString(), font);<br />
<br />
                newBmpGraphics.DrawString(land.Id.ToString(), font, new SolidBrush(Color.Black),<br />
                    new Point(land.CenterX - (int)(stringSize.Width / 2),<br />
                        3 + (int)stringSize.Height + land.CenterY - (int)(stringSize.Height / 2)));<br />
            }<br />


Any ideas ?

lg ifoko
AnswerRe: GDI+ unsharp DrawString Pin
Rob Graham4-Jan-06 5:03
Rob Graham4-Jan-06 5:03 
GeneralRe: GDI+ unsharp DrawString Pin
Ifoko4-Jan-06 7:29
Ifoko4-Jan-06 7:29 
GeneralRe: GDI+ unsharp DrawString Pin
Rob Graham4-Jan-06 8:37
Rob Graham4-Jan-06 8:37 
GeneralRe: GDI+ unsharp DrawString Pin
Ifoko5-Jan-06 6:09
Ifoko5-Jan-06 6:09 
QuestionSupport for Agent Technology in .NET Framework Pin
ShaaaM2-Jan-06 10:41
ShaaaM2-Jan-06 10:41 
AnswerRe: Support for Agent Technology in .NET Framework Pin
Dave Kreskowiak2-Jan-06 15:17
mveDave Kreskowiak2-Jan-06 15:17 
QuestionRe: Support for Agent Technology in .NET Framework Pin
ShaaaM3-Jan-06 10:06
ShaaaM3-Jan-06 10:06 
AnswerRe: Support for Agent Technology in .NET Framework Pin
Dave Kreskowiak3-Jan-06 10:15
mveDave Kreskowiak3-Jan-06 10:15 
QuestionBlobs (SQL and VS.NET) Pin
dortoh2-Jan-06 7:49
dortoh2-Jan-06 7:49 
AnswerRe: Blobs (SQL and VS.NET) Pin
Rob Graham2-Jan-06 8:27
Rob Graham2-Jan-06 8:27 
GeneralRe: Blobs (SQL and VS.NET) Pin
dortoh2-Jan-06 15:20
dortoh2-Jan-06 15:20 
GeneralRe: Blobs (SQL and VS.NET) Pin
Rob Graham4-Jan-06 3:57
Rob Graham4-Jan-06 3:57 
QuestionSecurity Exception Pin
zt.Prog2-Jan-06 4:18
zt.Prog2-Jan-06 4:18 
AnswerRe: Security Exception Pin
S. Senthil Kumar2-Jan-06 5:09
S. Senthil Kumar2-Jan-06 5:09 
QuestionDesign Question Pin
Andy *M*1-Jan-06 12:33
Andy *M*1-Jan-06 12:33 
AnswerRe: Design Question Pin
Leslie Sanford1-Jan-06 13:44
Leslie Sanford1-Jan-06 13:44 
GeneralRe: Design Question Pin
Andy *M*1-Jan-06 14:36
Andy *M*1-Jan-06 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.