Re: IMAGE create parameters

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Wed, 28 Aug 1996 20:19:57 +0200

peter.maersk-moller@jrc.it (Peter Maersk-Moller) wrote:

> How can I transfer a parameter from a function like
>
> "ined create IMAGE $file" in ip_world.tcl
>
> to "proc IMAGE::canvas { image }" in Objects.tcl

> Do I have to edit tkiMethods.c to get it to accept parameters or
> can I do something more elegant ?

There is no easy or elegant way to do that, sorry.

> PS. images in canvas' doesn't support change of color, so the color has
> to be set at creation. Changing and image into the type bitmap will
> probably require some changes in Command.tcl to prevent changing of
> background color (af {[$id type] == "IMAGE"} continue). Otherwise I
> can not see the exact reason for handling backgrounds as images
> and other bitmaps as bitmaps in the canvas. Maybe for some speed
> reasons ?

This is more an experimental feature. Images are generally nice - at
least for all the people with color monitors. However, there are two
problems: Images can't create PostScript output and they make is
difficult to change colors. So the default is to use bitmaps. However,
this requires large bitmap files compared to e.g. gif files.

Juergen

--
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)