Class TclTkImage
In: tk/lib/tcltk.rb
Parent: TclTkCommand

class TclTkImage: tcl/tk images

Methods

new  

Public Class methods

initialize(interp, t, *args):

    generating image is done by TclTkImage.new()
    destrying is done by image delete (inconsistent, sigh)
  interp: interpreter(TclTkInterpreter)
  t: image type (photo, bitmap, etc.)
  *args: command argument

[Source]

# File tk/lib/tcltk.rb, line 356
  def initialize(interp, t, *args)
    # auto-generate tcl/tk representation
    exp = TclTk._newname("i_")
    # initialize TclTkObject
    super(interp._tcltkip(), exp)
    # generate image
    res = @ip._eval_args("image create", t, exp, *args)
    fail("can't create Image") if res != exp
  end

[Validate]

ruby-doc.org is a community service provided by Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.