Results 1 to 4 of 4

Thread: [RESOLVED] drawstring

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    59

    Resolved [RESOLVED] drawstring

    Hi,

    I've use drawstring to draw a string of words onto an image.
    However, when you look clearly at the output image below, there are spots around the text string.




    i'm using the following to draw the string.

    VB Code:
    1. oGraphic.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
    2. oGraphic.DrawString(inputText, objFont, objBrush, objRect, objStringFormat);


    Can anyone advise me on how to get rid of the spots around the text ?


    Thanks.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    Re: drawstring

    Mt first guess would be to look at the color depth of your graphic object.
    Visual Studio .NET 2005/.NET Framework 2.0

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: drawstring

    You are using C# or VB.net?


    Edit: And if VB.NET, what version? - Hack
    Last edited by Hack; Mar 31st, 2006 at 07:49 AM.

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    59

    Re: drawstring

    i've found out the problem.

    the above image is output as jpeg, when i specifically output with 100% quality, the above does not happen. So it is due to jpeg compression quality and coding does not really matter.

    thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width