Re: [Interest] QML: Image is blurred when rotated

2021-07-30 Thread Shawn Rutledge


> On 2021 Jul 29, at 19:45, Alexander Dyagilev  wrote:
> 
> Hello,
> 
> I have an SVG image which is drawn fine.
> 
> But if I rotate it (i.e. change its rotation property to some value) it is 
> drawn blurry.

How blurry?

Image.sourceSize is useful when working with SVG, to render at a specific pixel 
resolution.  But that might not be the problem, if you just mean that pixels 
are pixel-grid-aligned to begin with, and then of course they are not anymore 
when it’s rotated.

You can also try Image.antialiasing.  That may make it more blurry in a good 
way (because blur is better than jaggies: AA means fuzzy edges).

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QML: Image is blurred when rotated

2021-07-29 Thread Frank Mertens
On 29.07.21 19:45, Alexander Dyagilev wrote:
> Hello,
>
> I have an SVG image which is drawn fine.
>
> But if I rotate it (i.e. change its rotation property to some value) it is 
> drawn blurry.
>
> Is this a bug or a normal behavior that can't be avoided?
>

Sure. Try myImage.smooth=false. Of course quality depends also on your GFX 
backend.
Check out QQuickWindow::setSceneGraphBackend().

God speed,
Frank

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] QML: Image is blurred when rotated

2021-07-29 Thread Alexander Dyagilev

Hello,

I have an SVG image which is drawn fine.

But if I rotate it (i.e. change its rotation property to some value) it 
is drawn blurry.


Is this a bug or a normal behavior that can't be avoided?

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest