Loading an Image/Picture from memory
Posted: Monday 28th May 2018 5:26am
Hi folks,
I'm working on an image/animation editor. My editor needs to be able to import multiple images, stored as separate layers, which are eventually saved out in a custom file format.
Currently I have images being loaded in from their location on the filesystem:
I'd like to draw this image to a Canvas. The intent is to make it so I don't have to pass around a copy of every image used in each layer, but rather just one file, each containing a b64 copy of all images used.
for example:
I've seen a couple solutions that involve writing out to temporary files, but I'd like to avoid that.
I see in the documentation that at least existed at one point in time, but it seems to be deprecated in the version I'm using, as I only get errors when trying to use it.
Thanks!
I'm working on an image/animation editor. My editor needs to be able to import multiple images, stored as separate layers, which are eventually saved out in a custom file format.
Currently I have images being loaded in from their location on the filesystem:
Code: Select all
newLayer.B64Image = Base64$(File.Load(imagePath))
for example:
Code: Select all
- image:
- Name: dogs
- B64Image: abcdef[etc]
- image:
- Name: cats
- B64Image: abcdef[etc]
I see in the documentation that
Code: Select all
Picture.FromString()
Thanks!