Zooming and image quality

For questions about using Classic.

Post » Sat Apr 23, 2011 4:33 pm

Whenever I've used a zoom event, the picture quality always gets unreasonably pixelated when I do a zoom in. Now, it's understandable when the image's dpi/resolution is low, but when it's high and it still pixelates it seems strange.

As a test, I used Windows picture viewer and zoomed in to the same image at the same distance as what I zoomed the image on in Construct. The one in picture viewer had its quality still in tact, the one in Construct was very pixelated.

Is there a type of way that Construct processes a zoomed image that causes this? And, is there any work around?
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Sat Apr 23, 2011 7:23 pm

Dpi is irrelevant here as it refers to printing. Anything you see on the screen is based on pixels.
[url:2f21ltx0]http://en.wikipedia.org/wiki/Image_scaling[/url:2f21ltx0]

Rule of thumb
Scale down less quality loss.
Scale up high quality loss.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sat Apr 23, 2011 10:14 pm

^^^ That's not relevant to the core of his question, and I'm going to give him a lot more credit and say that he would know as anyone who's used a computer for a day or two would know :o that as an image increases in size it decreases in quality, besides that's not what his question appears to be wondering about anyway. I take it that since he said "dpi/resolution", he was establishing that he was using images of high quality.

I've noticed the same thing he's described. I can take an image into another program and zoom it (up to a certain point) and the quality remains high as it should for a large high-res image, but in Construct the same image is noticeably lower in quality and is fuzzy and pixelated when I use a zoom event and zoom it up to the exact same point. Most users of this program probably don't use many--if any--images that are large in pixel size and high in memory and detail so the quality loss would be less noticeable to those users (or simply more tolerable depending on the type of game) in that case.
B
2
G
2
Posts: 47
Reputation: 744

Post » Sat Apr 23, 2011 10:56 pm

Well if you follow the link, it describes the different methods of scaling much better than I can here.
Most notably are the first three types. The first two are equivalent to what you have in Construct for the sake of speed. Then the third is the most commonly used, when speed is not an issue.

So without being trying to be completely inappropriate, its just not an image viewer, and wasn't designed for large "high-res" images.

Btw
[quote:3czly5oh]Rule of thumb
Scale down less quality loss.
Scale up high quality loss.[/quote:3czly5oh]

Is actually a big hint on how to deal with the issue.
Another would be that you can shrink images in the layout editor without quality loss.
And that when you take them back to their original size(runtime) there is no loss either.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests