Gegl.Sampler

Fields

None

Methods

get (x, y, scale, output, repeat_mode)

get_context_rect ()

Details

class Gegl.Sampler
get(x, y, scale, output, repeat_mode)
Parameters:
  • x (float) – x coordinate to sample

  • y (float) – y coordinate to sample

  • scale (Gegl.BufferMatrix2) – matrix representing extent of sampling area in source buffer.

  • output (object or None) – memory location for output data.

  • repeat_mode (Gegl.AbyssPolicy) – how requests outside the buffer extent are handled. Valid values: GEGL_ABYSS_NONE (abyss pixels are zeroed), GEGL_ABYSS_WHITE (abyss pixels are white), GEGL_ABYSS_BLACK (abyss pixels are black), GEGL_ABYSS_CLAMP (coordinates are clamped to the abyss rectangle), GEGL_ABYSS_LOOP (buffer contents are tiled if outside of the abyss rectangle).

Perform a sampling with the provided self.

get_context_rect()
Returns:

The context rectangle of the given self.

Return type:

Gegl.Rectangle