title: Return array of pixel values using Ruby and Mini Magick (or RMagick?)
body: <p>I'm trying to use mini_magick and ruby to get an array of all of the pixel values for an input image.</p>
  
  <p>I plan on eventually working with that array to design my own codec for it, this is for a homework assignment.</p>
  
  <p>Can anyone assist with the syntax for retrieving an array of these values? Or suggest that I use something other than mini_magick if necessary?</p>
  
  <p><strong>Note:</strong> I already have ImageMagick installed on my computer. I'm running Mac OSX Lion.</p>
  
  <p><strong>Update</strong>:
  Because a user requested me to post the code I have already (even though it's not completely relevant)</p>
  
  <pre><code>require 'rubygems'
  require 'mini_magick'
  
  path = "/Users/ardavis/Pictures/Atlantis/Andy_and_the_Shuttle.jpg"
  image = MiniMagick::Image.new(path)
  </code></pre>
  
  <p><strong>Update 2</strong>:
  Currently attempting to use RMagick, looking into the <code>export_pixels</code> function, not certain how it's used yet.
  Thank you!</p>