Copy link to clipboard
Copied
How does one go about taking a local image file and putting into an AE Plugin UI?
Based on my searching through all the sample projects and headers/resources, it seems like newImageFromBuffer() inside of the DrawbotSuite would be the route to go. If that is the case, how do I grab a local image file, fill it into a buffer, then provide it to this function to create an arbitrary UI param?
Thanks!
Copy link to clipboard
Copied
Hi Nate
A simple way to do this is with the header only image loader stb_image. This allows you to load a local file from a path in a variety of formats. You can then copy the array of pixels to the UI via the NewImageFromBuffer that you mentioned, then DrawImage.