HISE Logo Forum
    • Categories
    • Register
    • Login

    Trying to create a retina GUI, but am hitting max allowable resolution.

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elanhickler
      last edited by elanhickler

      900 by 700 is the max. I need 2048 x 1536

      Edit: Oh, well I need 1024x768. Then I need to scale the 2048x1536 image to fit in there.

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by Christoph Hart

        Use the half resolution and scale every image by 50%. Retina displays will be using the full resolution automatically.

        Edit: saw your edit too late :)

        1 Reply Last reply Reply Quote 0
        • E
          elanhickler
          last edited by elanhickler

          How do I do it?

          Edit: There's no scale option that I can see. Also, like I said, the background image width/height are maxed out. I have a 2048x1536 image. I import it into HISE interface. Now I need to scale it down to 1024x768. I can't find that option. Also, I can't even set the image size to that.

          1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey
            last edited by

            I think this post has the answer you require - http://forum.hise.audio/topic/233/interface-sizing/10

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • E
              elanhickler
              last edited by elanhickler

              I don't think this is working correctly. There should not be a gap. Also, not sure why the decision was made to invert the scale. 2 * resolution should be double the size, 1/2 (0.5) should be half but whatevs!

              favicon

              (puu.sh)

              1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart
                last edited by

                I'll take a look at it tomorrow. Meanwhile, you could use the ScriptPanel and simple draw the image there (the ScriptPanel is working correctly, I am using it for another iPad project).

                const var Panel = Content.addPanel("Panel", 0, 0);
                // [JSON Panel]
                Content.setPropertiesFromJSON("Panel", {
                  "width": 1024,
                  "height": 768
                });
                // [/JSON Panel]
                
                // Load the retina image with double resolution
                Panel.loadImage("{PROJECT_FOLDER}bg.png", "bg");
                
                Panel.setPaintRoutine(function(g)
                {
                        //          name,  x, y, w,               h,            xOffset, yOffset
                	g.drawImage("bg", [0, 0, this.getWidth(), this.getHeight()], 0, 0);
                });
                
                1 Reply Last reply Reply Quote 1
                • First post
                  Last post

                35

                Online

                1.7k

                Users

                11.7k

                Topics

                102.2k

                Posts