03-25-2025, 12:20 PM
Looking at the APIs, you would use Gimp.Drawable::get_shadow_buffer() that returns a Gegl.Buffer. Gegl.Buffer is a subclass of Gegl.TileHandler and so has a Gegl.TileHandler::get_tile() method, among others; but this method isn't avaiable in the language bindings. The closest you have is Gegl.Buffer::get() that return a rectangle of pixels.
However, if I guess correctly what your code does, it is simpler to just duplicate the source layer and then crop it around the tile with a layer_copy.resize(). See my ofn3-layer-tiles script.
However, if I guess correctly what your code does, it is simpler to just duplicate the source layer and then crop it around the tile with a layer_copy.resize(). See my ofn3-layer-tiles script.