Hi, I’m trying to read an image from within a C# component and show it on a Windows.Forms form.
I don’t want to read an image from a local drive, so I’m wondering if it’s possible to embed the image in the GH definition. The only solution I found so far is the Image Sampler component, but it’s very slow. Is there any smarter way? Thanks!
Try using Serialize Image To String and Deserialize Image From String from Human plugin.
Serialize your image, internalize the generated string inside the GH file and then use the deserialize component to “extract” it on the other side.
1 Like
Thanks! That’s exactly what I was looking for.