head	1.11;
access;
symbols
	core-8-5-9:1.9
	core-8-5-8:1.9
	macosx-cocoa-merge:1.11
	macosx-cocoa-premerge:1.11
	macosx-carbon-freeze:1.11
	core-8-5-7:1.9
	core-8-5-6:1.9
	core-8-6-b1:1.11
	core-8-6-a3:1.11
	core-8-5-5:1.9
	core-8-6-a2:1.10
	core-8-5-4:1.9
	core-8-5-3:1.9
	core-8-6-a1:1.9
	core-8-4-19:1.6.4.1
	core-8-5-branch:1.9.0.2
	core-8-5-2:1.9
	core-8-4-18:1.6.4.1
	core-8-5-1:1.9
	core-8-4-17:1.6.4.1
	core-8-5-0:1.9
	core-8-5-b3:1.8
	core-8-5-b2:1.7
	core-8-4-16:1.6.4.1
	core-8-5-b1:1.7
	core-stablilizer-merge:1.7
	core-stabilizer-branch:1.7.0.2
	core-stabilizer-merge:1.9
	core-8-4-15:1.6.4.1
	core-8-5-a6:1.7
	core-8-5-a5:1.7
	core-8-4-14:1.6.4.1
	core-8-5-a4:1.7
	core-8-4-13:1.6.4.1
	core-8-4-12:1.6.4.1
	core-8-4-11:1.6.4.1
	core-8-5-a3:1.7
	core-8-4-10:1.6.4.1
	core-8-4-9-branch:1.6.4.1.0.2
	core-8-5-a2:1.7
	core-8-4-9:1.6.4.1
	core-8-4-8:1.6.4.1
	core-8-4-7:1.6
	core-8-5-a1:1.6
	core-8-4-6:1.6
	core-8-4-5:1.6
	mistachkin-dev-branch:1.6.0.6
	core-8-4-4:1.6
	core-8-4-3:1.6
	core-8-4-branch:1.6.0.4
	core-8-4-2:1.6
	core-8-4-1:1.6
	core-8-3-5:1.2.18.1
	core-8-4-0:1.6
	macosx-8-4-merge-2002-08-31-trunk:1.6
	macosx-8-4-premerge-2002-08-31-branch:1.6
	macosx-8-4-premerge-2002-08-31-trunk:1.6
	macosx-8-4-merge-2002-08-30-branch:1.6
	macosx-8-4-merge-2002-08-30-trunk:1.6
	macosx-8-4-merge-2002-08-20-branch:1.6
	macosx-8-4-merge-2002-08-20-trunk:1.6
	core-8-4-b2:1.6
	core-8-4-b1:1.6
	macosx-premerge-6-9-02:1.6
	core-8-4-a4:1.6
	core-8-3-4:1.2.18.1
	macosx-8-4-branch:1.6.0.2
	macosx-8-4-branchpoint:1.6
	core-8-4-a3:1.6
	core-8-3-3:1.2.18.1
	dgp-privates-into-namespace:1.5.0.2
	tclpro-1-5-0:1.2
	core-8-4-win-speedup:1.3.0.2
	core-8-4-a2:1.3
	tclpro-1-4-1:1.2
	tclpro-1-4-0:1.2
	core-8-3-2:1.2
	ajuba-ajuba2-2-1-base:1.2
	ajuba-ajuba2-2-0:1.2
	core-8-4-a1:1.3
	core-8-3-1-branch:1.2.0.18
	core-8-3-1:1.2
	scriptics-sc-2-0-b5:1.2
	scriptics-sc-2-0-fixed:1.2
	scriptics-sc-2-0-b2:1.2
	scriptics-sc-2-0-b1:1.2
	core-8-3-0:1.2
	core-8-3-b2:1.2
	core-8-3-b1:1.2
	scriptics-sc-1-1:1.2
	scriptics-sc-1-1-b1:1.2
	core-8-2-3:1.2
	scriptics-sc-1-1-branch:1.2.0.16
	scriptics-sc-1-1-base:1.2
	scriptics-sc-1-0:1.2
	scriptics-sc-1-0-branch:1.2.0.14
	scriptics-sc-1-0-base:1.2
	core-8-2-2:1.2
	core-8-2-1:1.2
	scriptics-bc-1-0-b1:1.2
	core-8-2-1-branch:1.2.0.12
	scriptics-tclpro-1-3-0:1.2
	core-8-2-0:1.2
	core-8-2-b3-branch:1.2.0.10
	core-8-2-b3-base:1.2
	scriptics-tclpro-1-3-b4:1.2
	core-8-2-b2:1.2
	scriptics-tclpro-1-3-b3:1.2
	core-8-2-b1:1.2
	scriptics-tclpro-1-3-b2:1.2
	merge-to-mainline-5/21/99:1.2
	scriptics-tclpro-1-3-b2-branch:1.2.0.8
	core-8-1-1:1.2
	scriptics-tclpro-1-3-b1:1.2
	core-8-1-1-base:1.2
	core-8-1-0:1.2
	merge-to-mainline-4-29-99:1.2
	merge-to-mainline-4-23-99:1.2
	core-8-1-branch-old:1.1.0.4
	core-8-0-6-branch:1.2.0.6
	core-8-0-6-base:1.2
	core-8-0-5:1.2
	core-8-1-b3:1.1.4.1
	core-8-1-b2:1.1.4.1
	dev-8-1-stubs-branch:1.1.4.1.0.2
	dev-stubs-branch:1.2.0.4
	scriptics-tclpro-1-2:1.2
	scriptics-tclpro-1-2-b2:1.2
	core-8-1-merge-2/10/99:1.2
	core-8-0-5-branch:1.2.0.2
	core-8-0-5-base:1.2
	scriptics-tclpro-1-2-b1:1.2
	scriptics-tclpro-1-2-a1:1.2
	core-8-1-b1:1.1.4.1
	core-8-0-4:1.2
	core-8-1-a2:1.1
	core-8-0-2:1.1
	core-8-0-3:1.2;
locks; strict;
comment	@# @;


1.11
date	2008.09.23.13.36.40;	author dkf;	state Exp;
branches;
next	1.10;

1.10
date	2008.06.30.22.57.02;	author dkf;	state Exp;
branches;
next	1.9;

1.9
date	2007.12.13.15.23.43;	author dgp;	state Exp;
branches;
next	1.8;

1.8
date	2007.10.29.16.04.13;	author dkf;	state Exp;
branches;
next	1.7;

1.7
date	2004.06.15.22.44.42;	author dkf;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2001.04.03.04.33.58;	author hobbs;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	2000.11.28.11.16.04;	author dkf;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2000.11.23.13.50.10;	author dkf;	state Exp;
branches;
next	1.3;

1.3
date	2000.05.15.18.21.47;	author ericm;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	98.09.14.18.22.57;	author stanton;	state Exp;
branches
	1.2.18.1;
next	1.1;

1.1
date	98.04.01.09.39.52;	author rjohnson;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	98.09.30.02.16.20;	author stanton;	state Exp;
branches;
next	;

1.2.18.1
date	2001.04.04.07.23.48;	author hobbs;	state Exp;
branches;
next	;

1.3.2.1
date	2002.04.02.20.57.53;	author hobbs;	state Exp;
branches;
next	;

1.5.2.1
date	2001.07.03.20.01.07;	author dgp;	state Exp;
branches;
next	;

1.6.4.1
date	2004.10.28.10.19.29;	author dkf;	state Exp;
branches;
next	;

1.7.2.1
date	2007.11.01.16.37.14;	author dgp;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Fix [Bug 2118116]
@
text
@'\"
'\" Copyright (c) 1994 The Regents of the University of California.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" 
'\" RCS: @@(#) $Id: image.n,v 1.10 2008/06/30 22:57:02 dkf Exp $
'\" 
.so man.macros
.TH image n 4.0 Tk "Tk Built-In Commands"
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
image \- Create and manipulate images
.SH SYNOPSIS
\fBimage\fR \fIoption \fR?\fIarg arg ...\fR?
.BE
.SH DESCRIPTION
.PP
The \fBimage\fR command is used to create, delete, and query images.
It can take several different forms, depending on the
\fIoption\fR argument.  The legal forms are:
.TP
\fBimage create \fItype \fR?\fIname\fR? ?\fIoption value ...\fR?
Creates a new image and a command with the same name and returns its name.
\fItype\fR specifies the type of the image, which must be one of
the types currently defined (e.g., \fBbitmap\fR).
\fIname\fR specifies the name for the image;  if it is omitted then
Tk picks a name of the form \fBimage\fIx\fR, where \fIx\fR is
an integer.
There may be any number of \fIoption\fR\-\fIvalue\fR 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.
It is important to note that the image command will silently overwrite any
procedure that may currently be defined by the given name, so choose the
name wisely.  It is recommended to use a separate namespace for image names
(e.g., \fB::img::logo\fR, \fB::img::large\fR).
.TP
\fBimage delete \fR?\fIname name\fR ...?
Deletes each of the named images and returns an empty string.
If there are instances of the images displayed in widgets,
the images will not 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 \fBimage create\fR,
the existing instances will use the new image.
.TP
\fBimage height \fIname\fR
Returns a decimal string giving the height of image \fIname\fR
in pixels.
.TP
\fBimage inuse \fIname\fR
Returns a boolean value indicating whether or not the image given by
\fIname\fR is in use by any widgets.
.TP
\fBimage names\fR
Returns a list containing the names of all existing images.
.TP
\fBimage type \fIname\fR
Returns the type of image \fIname\fR (the value of the \fItype\fR
argument to \fBimage create\fR when the image was created).
.TP
\fBimage types\fR
Returns a list whose elements are all of the valid image types
(i.e., all of the values that may be supplied for the \fItype\fR
argument to \fBimage create\fR).
.TP
\fBimage width \fIname\fR
Returns a decimal string giving the width of image \fIname\fR
in pixels.
.PP
Additional operations (e.g. writing the image to a file) may be
available as subcommands of the image instance command. See the manual
page for the particular image type for details.
.SH "BUILT-IN IMAGE TYPES"
.PP
The following image types are defined by Tk so they will be available
in any Tk application.
Individual applications or extensions may define additional types.
.TP
\fBbitmap\fR
Each pixel in the image displays a foreground color, a background
color, or nothing.
See the \fBbitmap\fR manual entry for more information.
.TP
\fBphoto\fR
Displays a variety of full-color images, using dithering to
approximate colors on displays with limited color capabilities.
See the \fBphoto\fR manual entry for more information.
.SH "SEE ALSO"
bitmap(n), options(n), photo(n)
.SH KEYWORDS
height, image, types of images, width
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.10
log
@Minor doc updates (removing out of date changebars, improving typedef formatting,
 etc.)
@
text
@a0 1
'\" -*- nroff -*-
d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.9 2007/12/13 15:23:43 dgp Exp $
d102 3
@


1.9
log
@merge stable branch onto HEAD
@
text
@d1 1
d9 1
a9 1
'\" RCS: @@(#) $Id: image.n,v 1.7.2.1 2007/11/01 16:37:14 dgp Exp $
a19 1

a98 1

a100 1

@


1.8
log
@Lots more GOOBE stuff. Now works with 'make html'!
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.7 2004/06/15 22:44:42 dkf Exp $
@


1.7
log
@Enhanced doc in manner inspired by [RFE 803060]
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.6 2001/04/03 04:33:58 hobbs Exp $
d48 1
a48 1
the images won't actually be deleted until all of the instances
@


1.7.2.1
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.7 2004/06/15 22:44:42 dkf Exp $
d48 1
a48 1
the images will not actually be deleted until all of the instances
@


1.6
log
@* doc/image.n: added warning about names chosen for images.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.5 2000/11/28 11:16:04 dkf Exp $
d27 1
a27 1
Creates a new image and returns its name.
d80 4
a83 1

d100 3
@


1.6.4.1
log
@Backport of documentation fixes
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.6 2001/04/03 04:33:58 hobbs Exp $
d27 1
a27 1
Creates a new image and a command with the same name and returns its name.
d80 1
a80 4
.PP
Additional operations (e.g. writing the image to a file) may be
available as subcommands of the image instance command. See the manual
page for the particular image type for details.
a96 3
.SH "SEE ALSO"
bitmap(n), options(n), photo(n)

@


1.5
log
@Backed out previous change (except for test for bug.)
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.4 2000/11/23 13:50:10 dkf Exp $
d40 4
@


1.5.2.1
log
@        * Merged in updates from HEAD branch.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.6 2001/04/03 04:33:58 hobbs Exp $
a39 4
It is important to note that the image command will silently overwrite any
procedure that may currently be defined by the given name, so choose the
name wisely.  It is recommended to use a separate namespace for image names
(e.g., \fB::img::logo\fR, \fB::img::large\fR).
@


1.4
log
@Fixed bug #120819 by prohibiting images from starting with a period;
I'm still not quite sure what exactly was going wrong in the bug, but
I suspect the problem might have actually been due to the deletion of
all images while in the midst of creating an image.  The restriction
is pretty light when it comes to existing code, since it previously
caused a core dump due to an image typePtr field being set to random
garbage, an indication of over-eager use of free()...
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.3 2000/05/15 18:21:47 ericm Exp $
d30 3
a32 6
\fIname\fR specifies the name for the image
.VS 8.4
(which may not start with a period "." character);
.VE 8.4
if it is omitted then Tk picks a name of the form \fBimage\fIx\fR,
where \fIx\fR is an integer.
@


1.3
log
@* doc/image.n: Added documentation for [image inuse] command.

* tests/image.test: Added tests for [image inuse] command.

* generic/tkImage.c (Tk_ImageObjCmd): Added [image inuse] command,
which provides a means for programmers to determine if a given
image is in use by any widgets. [RFE: 3327].
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.2 1998/09/14 18:22:57 stanton Exp $
d30 6
a35 3
\fIname\fR specifies the name for the image;  if it is omitted then
Tk picks a name of the form \fBimage\fIx\fR, where \fIx\fR is
an integer.
@


1.3.2.1
log
@sync with head
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.6 2001/04/03 04:33:58 hobbs Exp $
a39 4
It is important to note that the image command will silently overwrite any
procedure that may currently be defined by the given name, so choose the
name wisely.  It is recommended to use a separate namespace for image names
(e.g., \fB::img::logo\fR, \fB::img::large\fR).
@


1.2
log
@Replaced SCCS strings, fixed binary files
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id$
d56 4
@


1.2.18.1
log
@doc cleanup and clarifications from 8.4aCVS backport
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.2 1998/09/14 18:22:57 stanton Exp $
a39 4
It is important to note that the image command will silently overwrite any
procedure that may currently be defined by the given name, so choose the
name wisely.  It is recommended to use a separate namespace for image names
(e.g., \fB::img::logo\fR, \fB::img::large\fR).
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
'\" SCCS: @@(#) image.n 1.10 96/03/26 18:23:05
@


1.1.4.1
log
@Merged 8.0.3 changes into 8.1
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: image.n,v 1.2 1998/09/14 18:22:57 stanton Exp $
@


