Method: TkPhotoImage#set_transparency

Defined in:
lib/tk/image.rb

#set_transparency(x, y, state) ⇒ Object

Makes the pixel at (x,y) transparent if state is true, and makes that pixel opaque otherwise.



373
374
375
376
# File 'lib/tk/image.rb', line 373

def set_transparency(x, y, state)
  tk_send('transparency', 'set', x, y, state)
  self
end