home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>Tk::Pixmap - Create color images from XPM files.</TITLE>
- <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::Pixmap - Create color images from XPM files.</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#image methods">IMAGE METHODS</A></LI>
- <LI><A HREF="#see also">SEE ALSO</A></LI>
- <LI><A HREF="#keywords">KEYWORDS</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>Tk::Pixmap - Create color images from XPM files.</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <P> <EM>$widget</EM>-><STRONG>Pixmap</STRONG>?(<EM>name</EM>?,<EM>options</EM>?)?</P>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>XPM is a popular X Window image file format for storing color icons.
- The <STRONG>Pixmap</STRONG> image type can be used to create color images using XPM files.</P>
- <P>Pixmaps support the following <EM>options</EM>:</P>
- <DL>
- <DT><STRONG><A NAME="item_%2Ddata_%3D%3E_string"><STRONG>-data</STRONG> => <EM>string</EM></A></STRONG><BR>
- <DD>
- Specifies the contents of the source pixmap as a string. The string
- must adhere to the XPM file format (e.g., as generated by the
- <STRONG>pixmap(1)</STRONG> program). If both the <STRONG>-data</STRONG> and <STRONG>-file</STRONG>
- options are specified, the <STRONG>-data</STRONG> option takes precedence.
- Please note that the XPM file parsing code in the xpm library is
- somewhat fragile. The first line of the string must be ``<STRONG>/* XPM</STRONG>
- */'' or otherwise a segmatation fault will be caused.
- <P></P>
- <DT><STRONG><A NAME="item_%2Dfile_%3D%3E_name"><STRONG>-file</STRONG> => <EM>name</EM></A></STRONG><BR>
- <DD>
- <EM>name</EM> gives the name of a file whose contents define the source
- pixmap. The file must adhere to the XPM file format (e.g., as
- generated by the <STRONG>pixmap(1)</STRONG> program).
- <P></P></DL>
- <P>
- <HR>
- <H1><A NAME="image methods">IMAGE METHODS</A></H1>
- <P>When a pixmap image is created, Tk also creates a new object.
- This object supports the <STRONG>configure</STRONG> and <STRONG>cget</STRONG> methods
- described in <A HREF="../../../site/lib/Tk/options.html">the Tk::options manpage</A> which can be used to enquire and
- modify the options described above.</P>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P><A HREF="../../../site/lib/Tk/Image.html">Tk::Image</A></P>
- <P>
- <HR>
- <H1><A NAME="keywords">KEYWORDS</A></H1>
- <P>pixmap, image, tix</P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::Pixmap - Create color images from XPM files.</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-