This is a migrated thread and some comments may be shown as answers.

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

5 Answers 38 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 06 Jun 2016, 06:01 PM

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 ?

5 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 08 Jun 2016, 11:23 AM
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.
0
Bruno
Top achievements
Rank 1
answered on 08 Jun 2016, 02:34 PM

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

 

0
Bruno
Top achievements
Rank 1
answered on 08 Jun 2016, 02:35 PM

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

Here it is:

0
Accepted
Milena
Telerik team
answered on 13 Jun 2016, 07:43 AM
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.
0
Bruno
Top achievements
Rank 1
answered on 13 Jun 2016, 03:17 PM

Thanks Milena,

 

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

Tags
Diagram
Asked by
Bruno
Top achievements
Rank 1
Answers by
Milena
Telerik team
Bruno
Top achievements
Rank 1
Share this question
or