NAME
pixane - Create and manipulate images from Tcl
SYNOPSIS
pixane option ?arg arg...?
DESCRIPTION
The pixane command is used to create, delete, and query images from
Tcl (Tk not required). It is mainly an interface to the serik library. It can take several
different forms, depending on the option argument. The legal forms are:
- pixane create type ?name? ?option value ...?
- Creates a new image and returns its name. type specifies the type of the image, which
must be one of the types currently defined (e.g., bitmap). name specifies the name for the
image; if it is omitted then Tk picks a name of the form imagex, where x is an integer.
There may be any number of option-value pairs, which provide configuration options for the
new image. The legal set of options is defined separately for each image type; see below
for details on the options for built-in image types. If an image already exists by the
given name then it is replaced with the new image and any instances of that image will
redisplay with the new contents.
- pixane delete ?image image ...?
- Deletes each of the named images and returns an empty string. If there are instances of
the images displayed in widgets, the images won't actually be deleted until all of the
instances are released. However, the association between the instances and the image
manager will be dropped. Existing instances will retain their sizes but redisplay as empty
areas. If a deleted image is recreated with another call to image create, the existing
instances will use the new image.
- pixane load image ?options?
- Load image content from file or memory buffer. Supported options are :
- -file filename
-channel channel
-data string
-format format
- pixane save image ?options?
- Save image content into file or memory buffer. Supported options are :
- -file filename
-channel channel
-format format
- pixane width image
- Returns a decimal string giving the width of image name in pixels.
- pixane height image
- Returns a decimal string giving the height of image name in pixels.
- pixane names
- Returns a list containing the names of all existing images in the currrent interpreter.
- pixane types
- Returns a list whose elements are all of the valid image types (i.e., all of the values
that may be supplied for the type argument to image create).
color image colorname
bgcolor image colorname
resize image
crop image
scale image
plot image x1 y1 ?x2 y2 ...?
arc image : NYI
line image x1 y1 ?x2 y2 ...?
oval image cx cy rx ?ry?
rectangle image x y width height
polygon image : NYI
fill image
copy image srcimage ?-from srcx srcy? ?-to destx desty? ?-width w?
?-height h?
text image x y ?-text string? ?-font string? ?-size fontsize? -angle angle
-align left|right|center -valign top|middle|baseline|bottom
blur image ?radius?
wind image dx dy
gradient image ?x1 y1? ?x2 y2?
noise image ?level?
event
sync
SUPPORTED FORMATS
Pixane include support for reading and writing a large variety of graphic formats.
Type |
Remarques |
GIF |
le support en lecture a été désactivé, afin de ne pas enfreindre la
patent Compuserve. Support des GIF en écriture, sans compression LZW (utilisation d'un
codage RLE, basé sur la librairie miGIF). |
PNG |
necessite la librarie libpng |
JPEG |
necessite la librairie libjpeg |
TIFF |
necessite la librairie libtiff.
support LZW en lecture et écriture désactivé (voir GIF). |
BMP |
sans compression |
EPS (Encapsulated Postscript) |
écriture uniquement |
PPM |
|
RGB (Iris RGB) |
|
XPM |
|
PCX |
|
WBMP |
|
CREDITS
- Support for TrueType fonts relies on the FreeType
library.
- Support for JPEG image compression and decompression relies on the Independant JPEG Group. library.
© 2000 Evolane - tous droits réservés.
|