How do I set up an editable image

I have spent a good part of the day trying to solve this, an so many of the tutorials are outdated.

All I want is a simple editable image size 32x32, that I can draw pixels onto.
I want to display it in a Frame.

I know how to create the editable image with AssetService, and get the return Object

game.AssetService:CreateEditableImage({ Size = Vector2.new(32, 32) })

but what do I do with it after that?

How do I ‘see’ it?

Thanks

I’m pretty sure editable images do not show anything unless you draw something on them, consider checking the below article.

Sorry, I wasn’t clear. I can draw on it, but I don’t know how to attach it to a visible instance of something, such as a surface gui element or screen gui element. Something I can display.

I am stuck with just the editable image object, and not knowing what to assign it to.

I’ve not really used EditableImages yet but have you watched this “tutorial”? This is really helpful

EditableImages are not exactly an “Instance” by design so you can’t instantly parent them to your images. They’re used with something called Content, which lets you attach your EditableImages to instances that support them.

This for decals:

Decal.TextureContent = Content.fromObject(editableImage)

This for ImageLabels:

ImageLabel.ImageContent = Content.fromObject(editableImage)

… and so on, you’d look for a property called Instance.???Content.

2 Likes

Thank you, that was the information I was looking for.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.