Re: Tk: Canvas Pixmap Item

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Sun, 21 Jul 1996 23:09:10 +0200

> Song Koh writes
> I notice that there is no Pixmap Item for Canvas'. Is there a way
> around this?
>

There is no pixmap in Standard Tk.
However, STk-3.0 provides a pixmap extension if you have the Xpm library on your system.
STk-3.1 provides the Ioi Kim Lam pixmap package which does not need the
Xpm library to work.

Pixmap items are available through the image subcommand:

        (require "pixmap")
        (pack (canvas '.c))
        (define img (image 'create 'pixmap :file "foo.xpm"))
        (.c 'create 'image 40 40 :image img)

Hope it helps



                -- Erick
Received on Sun Jul 21 1996 - 23:15:29 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST