1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>XmHTML Programmers Manual: XmHTMLImageGetType</TITLE>
<META HTTP-EQUIV="Keywords" CONTENT="XmHTML, HTML, Motif, Widget, eXode, XntHelp, Linux">
<META HTTP-EQUIV="Reply-to" CONTENT="ripley@xs4all.nl">
<META HTTP-EQUIV="Description" CONTENT="XmHTMLImageGetType - determine the type (format) of an image.">
<META NAME="Author" CONTENT="Koen D'Hondt">
<META NAME="Copyright" content="1995-1997 by Ripley Software Development">
<META NAME="Source" content="$Source$">
<META NAME="Revision" content="$Revision$">
<META NAME="Font" content="helvetica">
<link rev="made" href="mailto:ripley@xs4all.nl">
<link rel="home" href="index.html">
<link rel="previous" href="ImGZFSup.html">
<link rel="next" href="ImGifGzf.html">
<link rel="up" href="../man.html">
<link rel="copyright" href="copyrights.html">
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<h3><font face="helvetica,arial">Name</font></h3>
<blockquote>
XmHTMLImageGetType - determine the type (format) of an image.
</blockquote>
<h3><font face="helvetica,arial">Synopsis</font></h3>
<blockquote>
unsigned char XmHTMLImageGetType(String file, unsigned char *buf,
int size)
</blockquote>
<h3><font face="helvetica,arial">Description</font></h3>
<blockquote>
XmHTMLImageGetType determines the type of a given image. This image
can either be loaded from a file or already present in memory.
<p>
<dl>
<dt>file
<dd>Specifies the name of a file representing the image of which the
type has to be determined. May not be NULL;
<dt>*buf
<dd>Specifies a pointer to a memory buffer containing the image of which
the type has to be determined. Can be NULL;
<dt>size
<dd>Specifies the size of the memory buffer (if any). Can be 0;
</dl>
</blockquote>
<h3><font face="helvetica,arial">Return Value</font></h3>
<blockquote>
Any of the following values:
</blockquote>
<pre>
IMAGE_ERROR /* error on image loading */
IMAGE_UNKNOWN /* unknown image */
IMAGE_XPM /* X11 pixmap */
IMAGE_XBM /* X11 bitmap */
IMAGE_GIF /* CompuServe(C) Gif87a or Gif89a */
IMAGE_GIFANIM /* animated gif */
IMAGE_GIFANIMLOOP /* animated gif with loop extension */
IMAGE_GZF /* compatible Gif87a or Gif89a */
IMAGE_GZFANIM /* compatible animated gif */
IMAGE_GZFANIMLOOP /* compatible animated gif */
IMAGE_JPEG /* JPEG image */
IMAGE_PNG /* PNG image */
IMAGE_FLG /* Fast Loadable Graphic */
</pre>
<h3><font face="helvetica,arial">See Also</font></h3>
<blockquote>
XmHTML(3X), XmHTMLImageDefaultProc(3X), XmImageCreate(3X), XmImageInfo(3X)
</blockquote>
<hr noshade size="2" width="25%">
<i><font size="-1">
XmHTML, October 7, 1997
</font></i>
</body>
</html>
|