Why text would be pixelized/rasterized when zooming in/out

6 posts, 1 answers
  1. Bruno
    Bruno avatar
    10 posts
    Member since:
    Jul 2012

    Posted 06 Jun Link to this post

    I have some Text as part of my Diagram Shapes but text values some times get rasterized and loose their clearances and their qualities.

     

    Is there anyway to resolve this issue ?

  2. Milena
    Admin
    Milena avatar
    203 posts

    Posted 08 Jun Link to this post

    Hello Bruno,

    You can try setting UseLayoutRounding property on the root element to true and see if this will solve the issue. If not, please give us more detailed information about your scenario - e.g. it is reproducible after resizing of the shape, in which cases, etc.

    I hope this information helps. 

    Regards,
    Milena
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bruno
    Bruno avatar
    10 posts
    Member since:
    Jul 2012

    Posted 08 Jun in reply to Milena Link to this post

    Hello Milena,

    I have tried to set the UseLayoutRounding to true on the root but nothing changed. The issue is when Diagram is not in its max zoom level the Text doesn't seem to be rendered vectorial. (Look at attached images)

    Thanks,

    Ali

     

  5. Bruno
    Bruno avatar
    10 posts
    Member since:
    Jul 2012

    Posted 08 Jun in reply to Bruno Link to this post

    Sorry I forgot to attach the image that was not in the max zoom level.

    Here it is:

  6. Answer
    Milena
    Admin
    Milena avatar
    203 posts

    Posted 13 Jun Link to this post

    Hi Bruno,

    Thank you for the pictures provided.

    I think that this issue is not connected to the RadDiagram control, but to the implementation of the Text rendering in WPF. You can try to experiment with TextOptions class and TextFormattingMode and TextRenderingMode properties to avoid this blurry effect of the text. You can also take a look at this post where you can find examples of how to control the text rendering. 

    I hope this information helps.

    Regards,
    Milena
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  7. Bruno
    Bruno avatar
    10 posts
    Member since:
    Jul 2012

    Posted 13 Jun in reply to Milena Link to this post

    Thanks Milena,

     

    Setting TextOptions.TextFormattingMode="Ideal" resolved the issue.

Back to Top
UI for WPF is Visual Studio 2017 Ready