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

Windows Scaling cause Text abnormailty on RadDiagram

2 Answers 45 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jesper
Top achievements
Rank 2
Jesper asked on 28 Jan 2019, 01:30 PM

Hi,
I am facing problem in scaling with runtime text defined on telerik diagram.

I am attaching a sample project as well, it has associated font [EnterCommand].

Problem is scaling inconsistency done for runtime text definition.

You can also see video here [https://www.screencast.com/t/2iR20HifiOXz]

 

You can download sample project here [http://ge.tt/6SWf2Du2]

Enviornment: Windows 10, 125 % scaling recommended.

Let me know if any thing missing.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Jesper
Top achievements
Rank 2
answered on 30 Jan 2019, 06:43 AM

Hi,
Waiting for response on Post above

almost [Posted 1 day and 17 hours ago ] can we prioritize it?

0
Petar Mladenov
Telerik team
answered on 30 Jan 2019, 05:08 PM
Hello Jesper,

Generally this seems like a WPF Framework issue, since we changed the diagram with Canvas and diagram shapes with buttons and results were the same. TextBox has a little better image quality than the TextBlock (if we set equal fontsizes and fonts to them). Also the issue has to do with this Cloning which uses Format1bppIndexed pixel format.

var finalBitMap =
                      resizedBitMap.Clone(
                          new System.Drawing.Rectangle(0, 0, resizedBitMap.Width, resizedBitMap.Height),
                          System.Drawing.Imaging.PixelFormat.Format1bppIndexed);

I tried mixture of :

  - increasing DPI quality to 300/500
        - setting UseLayoutRounding and  RenderOptions.BitmapScalingMode to the Image and Diagram / Canvas
        - setting different sizes
  - setting TextOptions.TextFormattingMode="Display"

However, quality is good if I remove the mentioned cloning. I am posting here these findings if someone from our community has hit similar issue and has solution. I will also continue my private conversation in your support ticket. If I end up with solution , will post it here as well.

https://stackoverflow.com/questions/23334695/wpf-blurry-images https://stackoverflow.com/questions/190344/wpf-blurry-fonts-issue-solutions

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Diagram
Asked by
Jesper
Top achievements
Rank 2
Answers by
Jesper
Top achievements
Rank 2
Petar Mladenov
Telerik team
Share this question
or