Problem with image (solved)
-
It's probably an easy fix. I'm starting to experiment with Hise and I'm trying to upload an image in my project but it doesn't show up properly. It looks like this:
The image is in my Hise image folder and it's a png file.
-
Take a look at your size (x,y) and position coordinates in the "Component Size" panel for your Image Object.
I'm seeing negative coordinates that may be causing your image to be cutoff. Also, ensure that your Image Object size matches your PNG size.For example, if your PNG is 600x350, your Image Property Size should be 600 for the width, and 350 for the height, with an X0,Y0 coordinate to start.
-
Thank you for your answer!
The image size is the same as the Image Object size and it's also the same for the project GUI size. In theory, they should all fit together.
As for the coordinate, they put themselves at negative values automatically. When I enter 0 in each of them, the image is off-center.
Could it be a bug?
-
-
Found the problem: I had Visual Studio 2019 installed alongside the 2017 version. So I uninstalled it and now everything is working fine. Thanks for the support SonoLuminus.
-
Well, that's a weird solution, wouldn't know how having VS2019 around prevents loading of images - are you sure this was the reason?