How do extract/save the image from a spite?

0 favourites
  • 1 posts
From the Asset Store
Elevate your games with our AI Chatbot Integration! Seamlessly connect your Construct 3 projects with GPT-4 for dynamic,
  • There appears to be a lot of effort gone in to enable loading images into sprites from urls, base64, binary object, local storage etc.

    But why is there no easy way to simply save the loaded image as a base64, or save it into binary etc?

    Do we really have to do the whole complex "snapshot" the canvas (LayerToCanvas, DevicePixelRatio ETC) then request that using ajax, into binary and convert to base64...

    I have loaded an image from a URL (API), all i want to do is simply save that loaded image "somewhere" either into local storage or post it somewhere as base64.

    EDIT / UPDATE

    The way I am having to dnow do this is:

    - Ajax request the image straight into binary.

    - Then load the image from baniary into the sprite.

    - Can now send / save the binary/base64 as i wanted.

    I still wish there was a way to simply, "Get image from sprite".

    Andy

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)