class_docstr: Wrap a VipsRegion object.
  
      
docstr: Fill a region with pixel data.
  
  Pixels are filled with data!
  
  Returns:
      Pixel data.
  
  Raises:
      :class:`.Error`
docstr_tok: ["Fill","a","region","with","pixel","data",".","Pixels","are","filled","with","data","!","Returns",":","Pixel","data",".","Raises",":",":","class",":","`",".Error","`"]
code: def fetch(self, x, y, w, h):
      """Fill a region with pixel data.
  
      Pixels are filled with data!
  
      Returns:
          Pixel data.
  
      Raises:
          :class:`.Error`
  
      """
  
      if not at_least_libvips(8, 8):
          raise Error("libvips too old")
  
      psize = ffi.new("size_t *")
      pointer = vips_lib.vips_region_fetch(
          self.pointer, x, y, w, h, psize
      )
      if pointer == ffi.NULL:
          raise Error("unable to fetch from region")
  
      pointer = ffi.gc(pointer, glib_lib.g_free)
      return ffi.buffer(pointer, psize[0])
  
file_path: pyvips/pyvips/vregion.py
imports: from __future__ import division
  import pyvips
  from pyvips import ffi, glib_lib, vips_lib, Error, at_least_libvips
label_desc: Use image node_id 5 for calling the Region obj's underlying member method code with example usage: obj.fetch(x, y, w, h) and returns: ffi