[R] Using tcltk to display jpeg images

From: Jonathan Williams <jonathan.williams_at_pharmacology.oxford.ac.uk>
Date: Tue 23 Aug 2005 - 18:45:10 EST


Dear R Helpers,

Does anyone know how to use tcltk to display jpeg images? The manual says that
one must use Tk_PhotoCreateImageFormat to register the jpeg image handler. The
"ActiveTcl User Guide"

(http://support.serv.ch/lang/tcl/img/doc/img-jpeg.html) says:-

"The package img::jpeg is a sub-package of Img. It can be loaded as a part
of the complete
Img support, via package require Img, or on its own, via package require img::jpeg"

I downloaded the tkimg1.3 file from
http://kent.dl.sourceforge.net/sourceforge/tkimg/tkimg1.3.zip, but I cannot figure out how to 'build' the files to link them to R.

Would someone be so kind as to tell me how to do this? Better still, does anyone have an R routine
that will do it, since I have no experience of this kind of programming.

Thanks, in advance,

Jonathan Williams



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Aug 23 18:49:35 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:55 EST