@@ -481,7 +481,7 @@ public static void RenderToImage(Image image, string html, PointF location, Size
481481 /// <param name="stylesheetLoad">optional: can be used to overwrite stylesheet resolution logic</param>
482482 /// <param name="imageLoad">optional: can be used to overwrite image resolution logic</param>
483483 /// <returns>the generated image of the html</returns>
484- public static Image RenderToImageGdiPlus ( string html , Size size , TextRenderingHint textRenderingHint = TextRenderingHint . SingleBitPerPixelGridFit , CssData cssData = null ,
484+ public static Image RenderToImageGdiPlus ( string html , Size size , TextRenderingHint textRenderingHint = TextRenderingHint . AntiAlias , CssData cssData = null ,
485485 EventHandler < HtmlStylesheetLoadEventArgs > stylesheetLoad = null , EventHandler < HtmlImageLoadEventArgs > imageLoad = null )
486486 {
487487 var image = new Bitmap ( size . Width , size . Height , PixelFormat . Format32bppArgb ) ;
@@ -513,7 +513,7 @@ public static Image RenderToImageGdiPlus(string html, Size size, TextRenderingHi
513513 /// <param name="stylesheetLoad">optional: can be used to overwrite stylesheet resolution logic</param>
514514 /// <param name="imageLoad">optional: can be used to overwrite image resolution logic</param>
515515 /// <returns>the generated image of the html</returns>
516- public static Image RenderToImageGdiPlus ( string html , int maxWidth = 0 , int maxHeight = 0 , TextRenderingHint textRenderingHint = TextRenderingHint . SingleBitPerPixelGridFit , CssData cssData = null ,
516+ public static Image RenderToImageGdiPlus ( string html , int maxWidth = 0 , int maxHeight = 0 , TextRenderingHint textRenderingHint = TextRenderingHint . AntiAlias , CssData cssData = null ,
517517 EventHandler < HtmlStylesheetLoadEventArgs > stylesheetLoad = null , EventHandler < HtmlImageLoadEventArgs > imageLoad = null )
518518 {
519519 return RenderToImageGdiPlus ( html , Size . Empty , new Size ( maxWidth , maxHeight ) , textRenderingHint , cssData , stylesheetLoad , imageLoad ) ;
@@ -538,7 +538,7 @@ public static Image RenderToImageGdiPlus(string html, int maxWidth = 0, int maxH
538538 /// <param name="stylesheetLoad">optional: can be used to overwrite stylesheet resolution logic</param>
539539 /// <param name="imageLoad">optional: can be used to overwrite image resolution logic</param>
540540 /// <returns>the generated image of the html</returns>
541- public static Image RenderToImageGdiPlus ( string html , Size minSize , Size maxSize , TextRenderingHint textRenderingHint = TextRenderingHint . SingleBitPerPixelGridFit , CssData cssData = null ,
541+ public static Image RenderToImageGdiPlus ( string html , Size minSize , Size maxSize , TextRenderingHint textRenderingHint = TextRenderingHint . AntiAlias , CssData cssData = null ,
542542 EventHandler < HtmlStylesheetLoadEventArgs > stylesheetLoad = null , EventHandler < HtmlImageLoadEventArgs > imageLoad = null )
543543 {
544544 if ( string . IsNullOrEmpty ( html ) )
0 commit comments