Skip to content

[R-gui] tcltk: "Image" rather than bitmap loaded on tklabel

3 messages · Peter Dalgaard, Dirk Eddelbuettel

#
Hi all,

How can I display images from external files in tcltk?

In Perl/Tk, I can use the Tk::Photo widget to load a .png graphic file,
which then goes into a label or button widget. In R, I only managed to do
that with a bitmap which I converted from a .png file. 

Is there a simple way without having to re-code pieces of, say, tkrplot?

Thanks, Dirk
#
Dirk Eddelbuettel <edd@debian.org> writes:
Does "man n photo" get you anywhere?
#
On Thu, Jul 10, 2003 at 12:17:23AM +0200, Peter Dalgaard BSA wrote:
Hm, "man 3tk photo" doesn't mean that much to me as I never programmed in
tcl itself, but only ever through the Perl and R bindings. 

So no, sorry, that wasn't self-sufficient. 

Regards,  Dirk