jonathan_li at agilent.com writes:
> Hi,
>
> I think that R-tcltk doesn't have the capacity to display an image
stored in
> memory on a tkcanvas object, am I right?
> I have digged around everything I can find from Peter Dalgaard and tcltk
> references and drew my conclusion.
>
> Can you, Peter, or some other gurus on the list, give us a pointer or two
on
> how to proceed to solve this problem? I am afraid that it may involve
> writing C extensions for tcltk. Any pointer or even just hunch on how to
> solve the problem would be appreciated!
There's not all that much support for that yet, and I only know how to
do it using an external file (at least efficiently), but try stuff
like:
x <- tkcmd("image", "create", "photo",
file="/usr/lib/tk8.3/demos/images/teapot.ppm")
tkpack(canv<-tkcanvas(tt<-tktoplevel()))
tkcreate(canv, "image", 50,50, image=x)
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._