Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to Drawable.get_tile() for Gimp 3?
#2
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.
Reply


Messages In This Thread
RE: Alternative to Drawable.get_tile() for Gimp 3? - by Ofnuts - 03-25-2025, 12:20 PM

Forum Jump: