Antialiasing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guid

    Antialiasing

    Bonjour,
    je cherche un moyen d'appliquer un anti aliasing sur l'ensemble de mon
    application.

    Actuellement je suis a meme de le faire sur chaque controle en redefinissant
    la methode paint.
    Cela impliquerai que je dois redefinir chaque control ... c'est balo !

    exemple :
    protected override void OnPaint(PaintEv entArgs pe)

    {

    pe.Graphics.Tex tRenderingHint =
    System.Drawing. Text.TextRender ingHint.AntiAli asGridFit;

    base.OnPaint(pe );

    }

    Merci d'avance

    Guid


  • Bob Powell [MVP]

    #2
    Re: Antialiasing

    Salut,

    Generalement, un control vanille windows forms est en fait rien qu'un
    "wrapper" au tour d'un control Win32 donc le rendu du texte est fait en mode
    GDI et pas avec GDI+. Meme si le control est surcharger dans le maniere vous
    vous suggerer ca changera rien.

    La seul moyenne d'ameliorer le rendu du text par ces controls est de
    selectionner ClearType au niveau du systeme.

    Autrement, basculer vers WPF.

    --
    --
    Bob Powell [MVP]
    Visual C#, System.Drawing

    Ramuseco Limited .NET consulting


    Find great Windows Forms articles in Windows Forms Tips and Tricks


    Answer those GDI+ questions with the GDI+ FAQ


    All new articles provide code in C# and VB.NET.
    Subscribe to the RSS feeds provided and never miss a new article.


    "Guid" <g.duprez@wanad oo.frwrote in message
    news:OFt6eTlaIH A.4196@TK2MSFTN GP04.phx.gbl...
    Bonjour,
    je cherche un moyen d'appliquer un anti aliasing sur l'ensemble de mon
    application.
    >
    Actuellement je suis a meme de le faire sur chaque controle en
    redefinissant la methode paint.
    Cela impliquerai que je dois redefinir chaque control ... c'est balo !
    >
    exemple :
    protected override void OnPaint(PaintEv entArgs pe)
    >
    {
    >
    pe.Graphics.Tex tRenderingHint =
    System.Drawing. Text.TextRender ingHint.AntiAli asGridFit;
    >
    base.OnPaint(pe );
    >
    }
    >
    Merci d'avance
    >
    Guid
    >
    >

    Comment

    • RobinS

      #3
      Re: Antialiasing

      Geez, Bob, is there anything you can't do??? I mean (and this is going to be
      bad, since high school was a long time ago), "Geez, Bob, est-ce que il n'ya
      pas que vous pouvez faire?"

      RobinS.
      ----------------------------
      "Bob Powell [MVP]" <bob@spamkiller bobpowell.netwr ote in message
      news:640E4B0A-8E7A-4BE8-B29A-061F3D363B84@mi crosoft.com...
      Salut,
      >
      Generalement, un control vanille windows forms est en fait rien qu'un
      "wrapper" au tour d'un control Win32 donc le rendu du texte est fait en
      mode GDI et pas avec GDI+. Meme si le control est surcharger dans le
      maniere vous vous suggerer ca changera rien.
      >
      La seul moyenne d'ameliorer le rendu du text par ces controls est de
      selectionner ClearType au niveau du systeme.
      >
      Autrement, basculer vers WPF.
      >
      --
      --
      Bob Powell [MVP]
      Visual C#, System.Drawing
      >
      Ramuseco Limited .NET consulting

      >
      Find great Windows Forms articles in Windows Forms Tips and Tricks

      >
      Answer those GDI+ questions with the GDI+ FAQ

      >
      All new articles provide code in C# and VB.NET.
      Subscribe to the RSS feeds provided and never miss a new article.
      >
      >
      "Guid" <g.duprez@wanad oo.frwrote in message
      news:OFt6eTlaIH A.4196@TK2MSFTN GP04.phx.gbl...
      >Bonjour,
      >je cherche un moyen d'appliquer un anti aliasing sur l'ensemble de mon
      >application.
      >>
      >Actuellement je suis a meme de le faire sur chaque controle en
      >redefinissan t la methode paint.
      >Cela impliquerai que je dois redefinir chaque control ... c'est balo !
      >>
      >exemple :
      > protected override void OnPaint(PaintEv entArgs pe)
      >>
      > {
      >>
      > pe.Graphics.Tex tRenderingHint =
      >System.Drawing .Text.TextRende ringHint.AntiAl iasGridFit;
      >>
      > base.OnPaint(pe );
      >>
      > }
      >>
      >Merci d'avance
      >>
      >Guid
      >>
      >>
      >

      Comment

      • Stephany Young

        #4
        Re: Antialiasing

        He does Klingon, Greek and Double Dutch as well. :)


        "RobinS" <robins@imnotte lling.comwrote in message
        news:H_udneSGyc qfxzDanZ2dnUVZ_ r-vnZ2d@comcast.c om...
        Geez, Bob, is there anything you can't do??? I mean (and this is going to
        be bad, since high school was a long time ago), "Geez, Bob, est-ce que il
        n'ya pas que vous pouvez faire?"
        >
        RobinS.
        ----------------------------
        "Bob Powell [MVP]" <bob@spamkiller bobpowell.netwr ote in message
        news:640E4B0A-8E7A-4BE8-B29A-061F3D363B84@mi crosoft.com...
        >Salut,
        >>
        >Generalement , un control vanille windows forms est en fait rien qu'un
        >"wrapper" au tour d'un control Win32 donc le rendu du texte est fait en
        >mode GDI et pas avec GDI+. Meme si le control est surcharger dans le
        >maniere vous vous suggerer ca changera rien.
        >>
        >La seul moyenne d'ameliorer le rendu du text par ces controls est de
        >selectionner ClearType au niveau du systeme.
        >>
        >Autrement, basculer vers WPF.
        >>
        >--
        >--
        >Bob Powell [MVP]
        >Visual C#, System.Drawing
        >>
        >Ramuseco Limited .NET consulting
        >http://www.ramuseco.com
        >>
        >Find great Windows Forms articles in Windows Forms Tips and Tricks
        >http://www.bobpowell.net/tipstricks.htm
        >>
        >Answer those GDI+ questions with the GDI+ FAQ
        >http://www.bobpowell.net/faqmain.htm
        >>
        >All new articles provide code in C# and VB.NET.
        >Subscribe to the RSS feeds provided and never miss a new article.
        >>
        >>
        >"Guid" <g.duprez@wanad oo.frwrote in message
        >news:OFt6eTlaI HA.4196@TK2MSFT NGP04.phx.gbl.. .
        >>Bonjour,
        >>je cherche un moyen d'appliquer un anti aliasing sur l'ensemble de mon
        >>application .
        >>>
        >>Actuellemen t je suis a meme de le faire sur chaque controle en
        >>redefinissa nt la methode paint.
        >>Cela impliquerai que je dois redefinir chaque control ... c'est balo !
        >>>
        >>exemple :
        >> protected override void OnPaint(PaintEv entArgs pe)
        >>>
        >> {
        >>>
        >> pe.Graphics.Tex tRenderingHint =
        >>System.Drawin g.Text.TextRend eringHint.AntiA liasGridFit;
        >>>
        >> base.OnPaint(pe );
        >>>
        >> }
        >>>
        >>Merci d'avance
        >>>
        >>Guid
        >>>
        >>>
        >>
        >

        Comment

        Working...