title: How to turn Gdk pixbuf object into numpy array
body: <p>So, I am trying to take a screenshot of the screen and do some stuff with it as numpy array. However, all I could find is turning it into PIL Image first and then into numpy array. So, I was wondering if there is a way of turning it straight into numpy array without using the PIL library </p>
  
  <pre><code>from gi.repository import Gdk
  
  window = Gdk.get_default_root_window()
  x, y, width, height = window.get_geometry()
  pb = Gdk.pixbuf_get_from_window(window, x, y, width, height)
  </code></pre>
  
  <p>Thank you</p>