Method: TkPhotoImage#get
- Defined in:
- lib/tk/image.rb
#get(x, y) ⇒ Object
Returns the color of the pixel at coordinates (x,y) in the image as a list of three integers between 0 and 255, representing the red, green and blue components respectively.
326 327 328 |
# File 'lib/tk/image.rb', line 326 def get(x, y) tk_send('get', x, y).split.collect{|n| n.to_i} end |