Method: TkPhotoImage#get_transparency

Defined in:
lib/tk/image.rb

#get_transparency(x, y) ⇒ Object

Returns a boolean indicating if the pixel at (x,y) is transparent.



367
368
369
# File 'lib/tk/image.rb', line 367

def get_transparency(x, y)
  bool(tk_send('transparency', 'get', x, y))
end