Bug Issue: Image API error (enlarged and pixelated image)


Pages: 1

rodolfovs

  • Subscriber - Stencyl Studio
  • *
January 15, 2019, 05:46:50 am
Hello,

I was testing the function of picking up an image from the screen via image API and then pasting into the screen itself, and realized that this function besides enlarging the image, ends up distorting it, which results in a pixelated image.

I've used this function before in other older builds and it always worked normally. Any idea what that might be?


Issue updated by rodolfovs - January 15, 2019, 06:25:53 am
  • Category changed from Scene Designer to Design Mode Blocks


rob1221

  • Master Stencyler
  • *
January 15, 2019, 08:10:39 am
This is happening because the screenshot is of the scaled screen, and when you attach it to the screen again, it still has to be scaled by the x/y factors.  This was avoided in some older builds by autoscaling any image equal to the size of the screen, but that code was removed when the autoscaling system was changed.  For now you can do this (see attached block image).

I'm not sure if this should be considered a bug, but at the very least the solution should not require the use of code blocks.
  • Status changed from New to Confirmed


New attachment added by rob1221 - January 15, 2019, 08:10:50 am


rodolfovs

  • Subscriber - Stencyl Studio
  • *
January 15, 2019, 10:20:08 am
Hello Rob,

I will test and return.

It is not only the problem of image size, it is because the image also gets burst (pixelated). It gives the impression that it has been increased in a non-proportional way and has resulted in a distortion of the image.


rob1221

  • Master Stencyler
  • *
January 15, 2019, 10:23:48 am
That also happens with scale switching on?  Test the solution I posted and if there is still an issue then attach a sample project.
« Last Edit: January 15, 2019, 10:25:22 am by rob1221 »


rodolfovs

  • Subscriber - Stencyl Studio
  • *
January 15, 2019, 04:29:42 pm
I took the test and the size question was solved.

On the issue of the image getting pixelated, apparently only occurs on the android, because in the flash work. Even with the option selected with scale switching ON.


rob1221

  • Master Stencyler
  • *
January 15, 2019, 04:42:57 pm
So the image quality still gets worse on Android even after using the blocks I posted?  Did that also happen in earlier Stencyl builds?


rodolfovs

  • Subscriber - Stencyl Studio
  • *
January 15, 2019, 05:22:16 pm
sadly yes.

In previous versions it worked normally. I do not remember exactly the build (maybe 9989?) but I know it was stencyl 3.4.

I will attach here two images, one being normal print screen and the other being the print screen with the defect, so it will give to visualize what is actually occurring.


rob1221

  • Master Stencyler
  • *
January 15, 2019, 06:04:54 pm
Fixed the antialiasing bug in b10236.


rodolfovs

  • Subscriber - Stencyl Studio
  • *
January 16, 2019, 03:33:06 am
Very good, later I will test the new build and return here.

Thank you Rob.


rodolfovs

  • Subscriber - Stencyl Studio
  • *
January 16, 2019, 04:25:27 pm
Hello Rob,

Problem solved. I tested it and it works correctly. Thank you.


Issue updated by Justin - January 16, 2019, 05:36:23 pm
  • Issue Assigned from (none) to rob1221
  • Status changed from Confirmed to Resolved


Pages: 1

Details

  • Reported
    January 15, 2019, 05:46:50 am
  • Updated
    January 16, 2019, 05:36:23 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    rob1221
  • Category
    Design Mode Blocks

Tags


Attachments


* Screenshot Scaling.png (7.22 kB, 568x89 - viewed 45 times.)