From: Hidetoshi NAGAI Date: 2004-12-27T01:32:42+09:00 Subject: Re: [Tk] TkPhotoImage question Hi, From: email55555 email55555 Subject: [Tk] TkPhotoImage question Date: Sun, 26 Dec 2004 13:32:23 +0900 Message-ID: <91b08b8a04122520325f49bed8@mail.gmail.com> > but if you want subsample x y : > a.copy(b, :subsample=>'5 5') # ==> Error ... > a.copy(b, :subsample=>[5, 5]) # ==> Error ... ":subsample=>'5 5'" cannot be acceptable, because each value of the argument must be one token on the Tcl/Tk command. But ":subsample=>[5, 5]" is acceptable on Ruby1.8.2 release. > Same problem on read, write ... etc > a.read('image.gif', :shrink) #==> Error > a.read('image.gif', 'shrink') #==> Error > The only way to do it is : > a.read('image.gif', '-shrink') If you want set options without value on Tcl/Tk, please give true for each of the options (e.g. a.read('image.gif', :shrink=>true.)) -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)