omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Pixel Editor

    Pythonista
    5
    11
    6599
    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.
    • Sebastian
      Sebastian last edited by

      Here's a simple pixel editor I made. It only works on iPad, I don't see the point in making an iPhone version (because of the small screen). It's not really done yet, the code is a mess and there is still a lot of bugs, but I thought I'd share it anyways XD

      This is how it looks like:

      1 Reply Last reply Reply Quote 0
      • Dann239
        Dann239 last edited by

        Very cool! Thank you for sharing.

        1 Reply Last reply Reply Quote 0
        • brumm
          brumm last edited by

          Great, thank you.
          Is it to early for a feature requests? Zoom in/out would be fantastic, if you use a higher resolution.

          1 Reply Last reply Reply Quote 0
          • Sebastian
            Sebastian last edited by

            @brumm I don't really know how I would do that, but I'll look into it ;)

            1 Reply Last reply Reply Quote 0
            • brumm
              brumm last edited by

              I think the easier way is to do it with a slider or you might want to use a two finger gesture.
              example

              1 Reply Last reply Reply Quote 0
              • Sebastian
                Sebastian last edited by

                @brumm I'm more concerned about how to actually <I>choose</i> a pixel while in the zooming state.

                1 Reply Last reply Reply Quote 0
                • Sebastian
                  Sebastian last edited by

                  Still haven't figured out how to implement a zooming function. If anyone wants to give it a shot, you are more than welcome to! :)

                  This is how it looks like now:

                  1 Reply Last reply Reply Quote 0
                  • brumm
                    brumm last edited by

                    I don't know if this works: you could add a button for a defined zoom factor (e.g. 16x16) and two sliders to choose the zoom area (a frame in the preview would be great for the orientation but also more work). Since the ImageView is not very flexible I think will test at the weekend a self written view (you can get the touch events and also call the 'set needs display()' methode). If you don't want to wait you can take look here

                    1 Reply Last reply Reply Quote 0
                    • brumm
                      brumm last edited by

                      I saw you store the width and height of each pixel, so I would recommend that you change the image size while displaying the zoomed image / sector and of course the size of the pencil...<br>

                      #only some thoughts...
                      get_image
                      ...
                      img.draw(x,y,img_width*zoom,img_height*zoom)
                      ...
                      touch.location/zoom*(x or y) + (x or y) #if pixel is located in another sector
                      
                      1 Reply Last reply Reply Quote 0
                      • paimian
                        paimian last edited by ccc

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • sam rod
                          sam rod last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB Forums | Contributors