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

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 cour

[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 htt

Re: [Interest] QML Image size vs sourceSize strange things

2021-04-12 Thread Tor Arne Vestbø
The icons provided from the system also go through a similar process of choosing the right size for what you request. If you request something specific by setting the sourceSize you will affect this, so please just set widht/heigth, as that should work. (If it doesn’t please file a bug with a s

Re: [Interest] QML Image sourceSize bug (?)

2021-03-27 Thread Giuseppe D'Angelo via Interest
On 27/03/2021 15:46, Alexander Dyagilev wrote: If I enable mipmap, it looks much better comparing to original variant, but still worse comparing to the final one (described in my original posting). I can provide you all the screenshots if you want to. I can only entertain that mipmapping in y

Re: [Interest] QML Image sourceSize bug (?)

2021-03-27 Thread Alexander Dyagilev
First, thank you for your answers :) If I enable mipmap, it looks much better comparing to original variant, but still worse comparing to the final one (described in my original posting). I can provide you all the screenshots if you want to. On 3/27/2021 4:35 PM, Giuseppe D'Angelo wrote: O

Re: [Interest] QML Image sourceSize bug (?)

2021-03-27 Thread Giuseppe D'Angelo via Interest
On 27/03/2021 11:56, Alexander Dyagilev wrote: No. On 3/27/2021 1:24 PM, Giuseppe D'Angelo via Interest wrote: On 27/03/2021 04:20, Alexander Dyagilev wrote: Looks better. Why is it so? Did you enable mipmapping for the first one? Well, does it improve it you enable it? Thanks, -- Giuse

Re: [Interest] QML Image sourceSize bug (?)

2021-03-27 Thread Alexander Dyagilev
No. On 3/27/2021 1:24 PM, Giuseppe D'Angelo via Interest wrote: On 27/03/2021 04:20, Alexander Dyagilev wrote: Looks better. Why is it so? Did you enable mipmapping for the first one? Thanks, ___ Interest mailing list Interest@qt-project.org http

Re: [Interest] QML Image sourceSize bug (?)

2021-03-27 Thread Giuseppe D'Angelo via Interest
On 27/03/2021 04:20, Alexander Dyagilev wrote: Looks better. Why is it so? Did you enable mipmapping for the first one? Thanks, -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S., a KDAB Group company Tel. France +33 (0)4 90 84 08 53, http://www.k

Re: [Interest] QML Image size vs sourceSize strange things

2021-03-27 Thread Alexander Dyagilev
OK, thank you. We do use SVGs (but sometimes also PNGs). However, these PNGs I was talking about in the original posting are files icons from system. I can't replace them with SVGs. :) On 3/27/2021 9:51 AM, Nuno Santos wrote: I had the same problem with blurry images on retina displays. I end

Re: [Interest] QML Image size vs sourceSize strange things

2021-03-26 Thread Nuno Santos
I had the same problem with blurry images on retina displays. I ended up creating a image component that inside was by default setting source size for twice the width and height of the item size to have good results on iOS screens. However.. I have recently found that replacing the pngs for

[Interest] QML Image sourceSize bug (?)

2021-03-26 Thread Alexander Dyagilev
I have PNG image of 256x256 size. I'm trying to show it on 25x25 size using this code: Image{ width:25 height:25 fillMode:Image.PreserveAspectFit horizontalAlignment:Image.AlignHCenter verticalAlignment:Image.AlignVCenter source:preview.url } I'm getting this: If I add sourceSize so the

Re: [Interest] QML Image size vs sourceSize strange things

2021-03-26 Thread Alexander Dyagilev
This all is not about my question in any matter. I do not care about SVG at all. And SVG are not used in this example. Please learn to read question before answering On 3/23/2021 4:16 PM, Jérôme Godbout wrote: Do you really need to same memory by reducing the source size? I think you shoul

Re: [Interest] QML Image size vs sourceSize strange things

2021-03-23 Thread Jérôme Godbout
erest] QML Image size vs sourceSize strange things Il 23/03/21 14:16, Jérôme Godbout ha scritto: > Do you really need to same memory by reducing the source size? I think > you should left the source size alone and sample the image from the full > source. Source size for SVG doesn’t make a

Re: [Interest] QML Image size vs sourceSize strange things

2021-03-23 Thread Giuseppe D'Angelo via Interest
Il 23/03/21 14:16, Jérôme Godbout ha scritto: Do you really need to same memory by reducing the source size? I think you should left the source size alone and sample the image from the full source. Source size for SVG doesn’t make any sense, it’s vectoriel, doesn’t have any size, it can scale t

Re: [Interest] QML Image size vs sourceSize strange things

2021-03-23 Thread Jérôme Godbout
Do you really need to same memory by reducing the source size? I think you should left the source size alone and sample the image from the full source. Source size for SVG doesn’t make any sense, it’s vectoriel, doesn’t have any size, it can scale to any dimension. When playing with the image si

[Interest] QML Image

2016-03-19 Thread Jani Tykka
Hi, I'm using Qt 5.5.1. When quick2 window renders png-image defined in QML Image element it seems that colors are not rendered exactly as defined in source png-image. This seems to happen on images which have more complicated color fills, like gradients. Is there anything that can be done to achi

Re: [Interest] QML Image

2016-03-19 Thread Jani Tykka
subsampling issue. > > > *Sent:* Wednesday, March 16, 2016 at 8:26 AM > *From:* "Jani Tykka" > *To:* "interest@qt-project.org Interest" > *Subject:* [Interest] QML Image > Hi, > > I'm using Qt 5.5.1. When quick2 window renders png-image defined in QM

Re: [Interest] QML Image

2016-03-19 Thread Jani Tykka
Attached original image + comparison. On Thu, Mar 17, 2016 at 4:28 PM, Jason H wrote: > A picture would help > > *Sent:* Thursday, March 17, 2016 at 1:15 AM > *From:* "Jani Tykka" > *To:* "Jason H" > *Cc:* "interest@qt-project.org Interest" >

Re: [Interest] QML Image

2016-03-19 Thread Jason H
A picture would help   Sent: Thursday, March 17, 2016 at 1:15 AM From: "Jani Tykka" To: "Jason H" Cc: "interest@qt-project.org Interest" Subject: Re: [Interest] QML Image Source size was already set as the original image size. When mipmap is set colors seems to

Re: [Interest] QML Image

2016-03-19 Thread Jason H
Since you mention gradients, try setting source size or the mipmap properties. I wonder if you're getting some subsampling issue.     Sent: Wednesday, March 16, 2016 at 8:26 AM From: "Jani Tykka" To: "interest@qt-project.org Interest" Subject: [Interest] QML Ima

Re: [Interest] QML Image asyncronous property

2014-12-05 Thread Harri Pasanen
On 05/12/2014 10:58, Mark Gaiser wrote: > On Thu, Dec 4, 2014 at 4:27 PM, Harri Pasanen wrote: >> I'm playing with a GridView where the delegate contains an Image element >> with asyncronous: true property. >> >> >> As a result, when my QML file loads, I see a bunch of messages like: >> >> >> QObj

Re: [Interest] QML Image asyncronous property

2014-12-05 Thread Mark Gaiser
On Thu, Dec 4, 2014 at 4:27 PM, Harri Pasanen wrote: > I'm playing with a GridView where the delegate contains an Image element > with asyncronous: true property. > > > As a result, when my QML file loads, I see a bunch of messages like: > > > QObject::startTimer: Timers cannot be started from ano

[Interest] QML Image asyncronous property

2014-12-04 Thread Harri Pasanen
I'm playing with a GridView where the delegate contains an Image element with asyncronous: true property. As a result, when my QML file loads, I see a bunch of messages like: QObject::startTimer: Timers cannot be started from another thread going by in Application Output pane. This is with

Re: [Interest] QML Image Resources and Qt Quick Designer

2014-08-27 Thread William Hallatt
Good day everyone, I have continued playing with various combinations of resource files, directory structures and resource prefixes since none of my searches so far have returned anything of use. Having said that, I have had absolutely no luck yet either. Initially I tried a separate resource fi

[Interest] QML Image aliasing issues

2014-01-12 Thread Joshua Kolden
I'm getting bad aliasing on large resolution Image items (2048x512) when animating scale. I've tried turning on anti-aliasing, mipmaping, and smooth, but none of these have had any effect. Any suggestions? Thanks ___ Interest mailing list Interest@

Re: [Interest] QML Image memory use

2012-05-02 Thread Robin Burchell
On Wed, May 2, 2012 at 12:53 PM, Harri Pasanen wrote: > Does the scaling happen at display time, or at load time? You probably want to read the documentation for Image::sourceSize. Image::size is applied after the image has been loaded. ___ Interest ma

[Interest] QML Image memory use

2012-05-02 Thread Harri Pasanen
I wonder if QML Image { anchors.fill: parent source: "360x640.jpg" smooth: true } uses more memory than Image { anchors.fill: parent source: "180x320.jpg" smooth: true } ??? Does the scaling happen at display time, or at load time? (Reason I'm asking