Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
AnswerRe: Encrypted XML File Pin
Bernhard Hiller14-Sep-14 22:45
Bernhard Hiller14-Sep-14 22:45 
QuestionWhich is best for .net C# environment Resharper or Klocwork? Pin
Subha.A14-Sep-14 16:51
Subha.A14-Sep-14 16:51 
AnswerRe: Which is best for .net C# environment Resharper or Klocwork? Pin
CPallini14-Sep-14 18:54
mveCPallini14-Sep-14 18:54 
AnswerRe: Which is best for .net C# environment Resharper or Klocwork? Pin
BillWoodruff14-Sep-14 19:42
professionalBillWoodruff14-Sep-14 19:42 
GeneralRe: Which is best for .net C# environment Resharper or Klocwork? Pin
Pete O'Hanlon14-Sep-14 21:27
mvePete O'Hanlon14-Sep-14 21:27 
QuestionStart Process With Dock Style Pin
Django_Untaken14-Sep-14 10:05
Django_Untaken14-Sep-14 10:05 
AnswerRe: Start Process With Dock Style Pin
Dave Kreskowiak14-Sep-14 11:04
mveDave Kreskowiak14-Sep-14 11:04 
QuestionDrawing Text on a Bitmap Pin
Richard Andrew x6414-Sep-14 10:01
professionalRichard Andrew x6414-Sep-14 10:01 
I'm using the Graphics.DrawString() method to put some text onto a bitmap that I create on the fly.

The problem is that the text comes out looking blocky and pixelated, not like a true-type font at all. What could I be doing wrong?

I've simplified the code below, but it shows how I'm drawing the text:
C#
using (Graphics G = Graphics.FromImage(Chart))
{
    using (Pen P = new Pen(Color.LightSlateGray))
    {
        using (SolidBrush B = new SolidBrush(Color.Black))
        {
            using (Font F = new Font(new FontFamily("Arial"), 9f, FontStyle.Regular))
            {
                G.DrawString((ScaleBaseY + LineCount).ToString(), F, B, (float)(UsableSizeX + 2), (float)Y);
            }
        }
     }
}




The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Drawing Text on a Bitmap Pin
Ravi Bhavnani14-Sep-14 10:14
professionalRavi Bhavnani14-Sep-14 10:14 
GeneralRe: Drawing Text on a Bitmap Pin
Richard Andrew x6414-Sep-14 10:24
professionalRichard Andrew x6414-Sep-14 10:24 
GeneralRe: Drawing Text on a Bitmap Pin
Ravi Bhavnani14-Sep-14 10:38
professionalRavi Bhavnani14-Sep-14 10:38 
QuestionRemove Item in datagridcombocell when its already use on another row C# Pin
hussainroyal14-Sep-14 7:40
hussainroyal14-Sep-14 7:40 
QuestionCommand line export rtf to html in emmbeded Pin
Reninvaldo SIlva13-Sep-14 9:07
Reninvaldo SIlva13-Sep-14 9:07 
AnswerRe: Command line export rtf to html in emmbeded Pin
Dave Kreskowiak13-Sep-14 11:21
mveDave Kreskowiak13-Sep-14 11:21 
GeneralRe: Command line export rtf to html in emmbeded Pin
Reninvaldo SIlva13-Sep-14 13:38
Reninvaldo SIlva13-Sep-14 13:38 
GeneralRe: Command line export rtf to html in emmbeded Pin
Dave Kreskowiak13-Sep-14 17:18
mveDave Kreskowiak13-Sep-14 17:18 
GeneralRe: Command line export rtf to html in emmbeded Pin
Reninvaldo SIlva15-Sep-14 7:58
Reninvaldo SIlva15-Sep-14 7:58 
QuestionJust for the fun of it... Pin
Rob Philpott12-Sep-14 20:54
Rob Philpott12-Sep-14 20:54 
AnswerRe: Just for the fun of it... Pin
OriginalGriff12-Sep-14 21:12
mveOriginalGriff12-Sep-14 21:12 
GeneralRe: Just for the fun of it... Pin
Rob Philpott12-Sep-14 21:23
Rob Philpott12-Sep-14 21:23 
GeneralRe: Just for the fun of it... Pin
OriginalGriff12-Sep-14 22:14
mveOriginalGriff12-Sep-14 22:14 
GeneralRe: Just for the fun of it... Pin
harold aptroot12-Sep-14 22:19
harold aptroot12-Sep-14 22:19 
GeneralRe: Just for the fun of it... Pin
Rob Philpott13-Sep-14 0:24
Rob Philpott13-Sep-14 0:24 
GeneralRe: Just for the fun of it... Pin
harold aptroot13-Sep-14 0:28
harold aptroot13-Sep-14 0:28 
GeneralRe: Just for the fun of it... Pin
Rob Philpott13-Sep-14 1:02
Rob Philpott13-Sep-14 1:02 

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.