就像是:
img = Magick::Image.read(path).firsthexVal = img.getHexValue
img = Magick::Image.read(path).firstpix = img.scale(1,1)averageColor = pix.pixel_color(0,0)