Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Pasteboard.copy

When i push a image to pasteboard. It gets mangled.
If i try to paste it again, i get the 1/4 lower left corner of original image and half the width of that same original image.
If I sprite the same image that I pushed onto pasteboard, i do not get that error. What Ipad do I have, the new one with the little contact. Can it be a retina problem?

Comments

  • dave1707dave1707 Mod
    Posts: 9,279

    What do you mean by push an image to the pasteboard. You have to be more specific about what you're doing. Do you have any code that you're using that shows what you're doing and the problem you're getting.

  • Posts: 2,261

    Hi @oscarserud,

    Are you using image.copy() to put it into the pasteboard? The code where you created the image then copied is what we need to see. The details of the image would also be useful.

    Bri_G

    :)

  • dave1707dave1707 Mod
    Posts: 9,279

    Here's a simple example that shows an image from the pasteboard. All I do is display an image somewhere, get a copy icon to show, and press the copy icon to place it in the pasteboard. I then run the below program to display it in Codea. It displays the correct size image.

    displayMode(FULLSCREEN)
    
    function setup()
        img=pasteboard.image
    end
    
    function draw()
        background(0)
        sprite(img,WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
    end
    
Sign In or Register to comment.