<html> <head> <link rel="stylesheet" href="page.css" type="text/css"> <title>fox-toolkit.org - Documentation</title> </head> <body bgcolor=#ffffff link=#990033 vlink=#990033 alink=#990033 text=#000000> <font face='verdana,sans-serif' size=2 > <!---- TOPIC TITLE WITH LOGO---> <table border=0 cellpadding= cellspacing=2 width=100% ><tr><td><a href='http://www.fox-toolkit.org/doc.html'><img src='../art/foxlogo_small.jpg' border=0></a></td><td width=100% valign=bottom><font face='verdana,sans-serif' size=2 ><b> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <br><img src='../art/line.gif' width=100% height=1></b></font></td></tr></table> <p> <!--- TOPIC TITLE WITH LOGO ---> <!-- Generated by Doxygen 1.3.3 --> <h1>FX::FXImage Class Reference</h1>An Image is a rectangular array of pixels. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="FXImage_8h-source.html">FXImage.h</a>></code> <p> <p>Inheritance diagram for FX::FXImage: <p><center><img src="classFX_1_1FXImage.png" usemap="#FX::FXImage_map" border="0" alt=""></center> <map name="FX::FXImage_map"> <area href="classFX_1_1FXDrawable.html" alt="FX::FXDrawable" shape="rect" coords="0,112,113,136"> <area href="classFX_1_1FXId.html" alt="FX::FXId" shape="rect" coords="0,56,113,80"> <area href="classFX_1_1FXObject.html" alt="FX::FXObject" shape="rect" coords="0,0,113,24"> <area href="classFX_1_1FXBMPImage.html" alt="FX::FXBMPImage" shape="rect" coords="123,224,236,248"> <area href="classFX_1_1FXGIFImage.html" alt="FX::FXGIFImage" shape="rect" coords="123,280,236,304"> <area href="classFX_1_1FXICOImage.html" alt="FX::FXICOImage" shape="rect" coords="123,336,236,360"> <area href="classFX_1_1FXIcon.html" alt="FX::FXIcon" shape="rect" coords="123,392,236,416"> <area href="classFX_1_1FXJPGImage.html" alt="FX::FXJPGImage" shape="rect" coords="123,448,236,472"> <area href="classFX_1_1FXPCXImage.html" alt="FX::FXPCXImage" shape="rect" coords="123,504,236,528"> <area href="classFX_1_1FXPNGImage.html" alt="FX::FXPNGImage" shape="rect" coords="123,560,236,584"> <area href="classFX_1_1FXPPMImage.html" alt="FX::FXPPMImage" shape="rect" coords="123,616,236,640"> <area href="classFX_1_1FXRGBImage.html" alt="FX::FXRGBImage" shape="rect" coords="123,672,236,696"> <area href="classFX_1_1FXTGAImage.html" alt="FX::FXTGAImage" shape="rect" coords="123,728,236,752"> <area href="classFX_1_1FXTIFImage.html" alt="FX::FXTIFImage" shape="rect" coords="123,784,236,808"> <area href="classFX_1_1FXXBMImage.html" alt="FX::FXXBMImage" shape="rect" coords="123,840,236,864"> <area href="classFX_1_1FXXPMImage.html" alt="FX::FXXPMImage" shape="rect" coords="123,896,236,920"> </map> <a href="classFX_1_1FXImage-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a0">FXImage</a> (<a class="el" href="classFX_1_1FXApp.html">FXApp</a> *a, const FXColor *pix=NULL, FXuint opts=0, FXint w=1, FXint h=1)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>FXColor * </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a1">getData</a> () const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>FXuint </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a2">getOptions</a> () const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a3">setOptions</a> (FXuint opts)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>FXColor </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a4">getPixel</a> (FXint x, FXint y) const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a5">setPixel</a> (FXint x, FXint y, FXColor color)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a6">create</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a7">detach</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a8">destroy</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a9">restore</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a10">render</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a11">release</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a12">resize</a> (FXint w, FXint h)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a13">scale</a> (FXint w, FXint h, FXint quality=0)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a14">mirror</a> (FXbool horizontal, FXbool vertical)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a15">rotate</a> (FXint degrees)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a16">crop</a> (FXint x, FXint y, FXint w, FXint h)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a17">fill</a> (FXColor color)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a18">fade</a> (FXColor color, FXint factor=255)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a19">xshear</a> (FXint shear, FXColor clr=0)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a20">yshear</a> (FXint shear, FXColor clr=0)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a21">hgradient</a> (FXColor left, FXColor right)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a22">vgradient</a> (FXColor top, FXColor bottom)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a23">gradient</a> (FXColor topleft, FXColor topright, FXColor bottomleft, FXColor bottomright)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a24">blend</a> (FXColor color)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a25">save</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &store) const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a26">load</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &store)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual FXbool </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a27">savePixels</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &store) const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual FXbool </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a28">loadPixels</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &store)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXImage.html#a29">~FXImage</a> ()</td></tr> <tr><td colspan=2><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a name="n0" doxytag="FX::FXImage::FXDC"></a> class </td><td class="memItemRight" valign=bottom><b>FXDC</b></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a name="n1" doxytag="FX::FXImage::FXDCWindow"></a> class </td><td class="memItemRight" valign=bottom><b>FXDCWindow</b></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a name="n2" doxytag="FX::FXImage::FXDrawable"></a> class </td><td class="memItemRight" valign=bottom><b>FXDrawable</b></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a name="n3" doxytag="FX::FXImage::FXTopWindow"></a> class </td><td class="memItemRight" valign=bottom><b>FXTopWindow</b></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> An Image is a rectangular array of pixels. <p> It supports two representations of these pixels: a client-side pixel buffer which is stored as an array of FXColor, and a server-side pixmap which is stored in an organization directly compatible with the screen, for fast drawing onto the device. The server-side representation is not directly accessible from the current process as it lives in the process of the X Server or GDI.<p> See also: <ul> <li><a class="el" href="group__FXImage__0.html">Image rendering hints</a>. </li> </ul> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="FX::FXImage::FXImage"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> FX::FXImage::FXImage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXApp.html">FXApp</a> * </td> <td class="mdname" nowrap> <em>a</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const FXColor * </td> <td class="mdname" nowrap> <em>pix</em> = NULL, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXuint </td> <td class="mdname" nowrap> <em>opts</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>w</em> = 1, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>h</em> = 1</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create an image. <p> If a client-side pixel buffer has been specified, the image does not own the pixel buffer unless the IMAGE_OWNED flag is set. If the IMAGE_OWNED flag is set but a NULL pixel buffer is passed, a pixel buffer will be automatically created and will be owned by the image. The flags IMAGE_SHMI and IMAGE_SHMP may be specified for large images to instruct <a class="el" href="classFX_1_1FXImage.html#a10">render()</a> to use shared memory to communicate with the server. </td> </tr> </table> <a name="a29" doxytag="FX::FXImage::~FXImage"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual FX::FXImage::~<a class="el" href="classFX_1_1FXImage.html">FXImage</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Destructor. <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a1" doxytag="FX::FXImage::getData"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> FXColor* FX::FXImage::getData </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> To get to the pixel data. <p> </td> </tr> </table> <a name="a2" doxytag="FX::FXImage::getOptions"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> FXuint FX::FXImage::getOptions </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> To get to the option flags. <p> </td> </tr> </table> <a name="a3" doxytag="FX::FXImage::setOptions"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void FX::FXImage::setOptions </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXuint </td> <td class="mdname1" valign="top" nowrap> <em>opts</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Change options. <p> </td> </tr> </table> <a name="a4" doxytag="FX::FXImage::getPixel"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> FXColor FX::FXImage::getPixel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>y</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get pixel at x,y. <p> </td> </tr> </table> <a name="a5" doxytag="FX::FXImage::setPixel"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void FX::FXImage::setPixel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>color</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Change pixel at x,y. <p> </td> </tr> </table> <a name="a6" doxytag="FX::FXImage::create"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::create </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create the server side pixmap, then call <a class="el" href="classFX_1_1FXImage.html#a10">render()</a> to fill it with the pixel data from the client-side buffer. <p> After the server-side image has been created, the client-side pixel buffer will be deleted unless IMAGE_KEEP has been specified. If the pixel buffer is not owned, i.e. the flag IMAGE_OWNED is not set, the pixel buffer will not be deleted. <p> Reimplemented from <a class="el" href="classFX_1_1FXId.html#a2">FX::FXId</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXIcon.html#a1">FX::FXIcon</a>. </td> </tr> </table> <a name="a7" doxytag="FX::FXImage::detach"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::detach </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Detach the server side pixmap from the Image. <p> Afterwards, the Image is left as if it never had a server-side resources. <p> Reimplemented from <a class="el" href="classFX_1_1FXId.html#a3">FX::FXId</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXIcon.html#a2">FX::FXIcon</a>. </td> </tr> </table> <a name="a8" doxytag="FX::FXImage::destroy"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::destroy </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Destroy the server-side pixmap. <p> The client-side pixel buffer is not affected. <p> Reimplemented from <a class="el" href="classFX_1_1FXId.html#a4">FX::FXId</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXIcon.html#a3">FX::FXIcon</a>. </td> </tr> </table> <a name="a9" doxytag="FX::FXImage::restore"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::restore </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Retrieves pixels from the server-side image. <p> For example, to make screen snapshots, or to retrieve an image after it has been drawin into by various means. </td> </tr> </table> <a name="a10" doxytag="FX::FXImage::render"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::render </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Render the server-side representation of the image from client-side pixels. <p> Normally, IMAGE_DITHER is used which causes the server-side representation to be rendered using a 16x16 ordered dither if necessary; however if IMAGE_NEAREST is used a faster (but uglier-looking), nearest neighbor algorithm is used. <p> Reimplemented in <a class="el" href="classFX_1_1FXIcon.html#a4">FX::FXIcon</a>. </td> </tr> </table> <a name="a11" doxytag="FX::FXImage::release"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::release </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Release the client-side pixels buffer, free it if it was owned. <p> If it is not owned, the image just forgets about the buffer. </td> </tr> </table> <a name="a12" doxytag="FX::FXImage::resize"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::resize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>w</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>h</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Resize both client-side and server-side representations (if any) to the given width and height. <p> The new representations typically contain garbage after this operation and need to be re-filled. <p> Reimplemented from <a class="el" href="classFX_1_1FXDrawable.html#a4">FX::FXDrawable</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXIcon.html#a5">FX::FXIcon</a>. </td> </tr> </table> <a name="a13" doxytag="FX::FXImage::scale"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::scale </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>w</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>h</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>quality</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Rescale pixels image to the specified width and height; this calls <a class="el" href="classFX_1_1FXImage.html#a12">resize()</a> to adjust the client and server side representations. <p> </td> </tr> </table> <a name="a14" doxytag="FX::FXImage::mirror"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::mirror </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXbool </td> <td class="mdname" nowrap> <em>horizontal</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXbool </td> <td class="mdname" nowrap> <em>vertical</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Mirror image horizontally and/or vertically. <p> </td> </tr> </table> <a name="a15" doxytag="FX::FXImage::rotate"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::rotate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname1" valign="top" nowrap> <em>degrees</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Rotate image by degrees ccw; this calls <a class="el" href="classFX_1_1FXImage.html#a12">resize()</a> to adjust the client and server side representations if necessary. <p> </td> </tr> </table> <a name="a16" doxytag="FX::FXImage::crop"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::crop </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>w</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>h</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Crop image to given rectangle; this calls <a class="el" href="classFX_1_1FXImage.html#a12">resize()</a> to adjust the client and server side representations. <p> </td> </tr> </table> <a name="a17" doxytag="FX::FXImage::fill"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::fill </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXColor </td> <td class="mdname1" valign="top" nowrap> <em>color</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Fill image with uniform color. <p> </td> </tr> </table> <a name="a18" doxytag="FX::FXImage::fade"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::fade </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXColor </td> <td class="mdname" nowrap> <em>color</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>factor</em> = 255</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Fade image to uniform color. <p> </td> </tr> </table> <a name="a19" doxytag="FX::FXImage::xshear"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::xshear </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>shear</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>clr</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Shear image horizontally; the number of pixels is equal to the shear parameter times 256. <p> The area outside the image is filled with transparent black, unless another color is specified. </td> </tr> </table> <a name="a20" doxytag="FX::FXImage::yshear"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::yshear </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXint </td> <td class="mdname" nowrap> <em>shear</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>clr</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Shear image vertically; the number of pixels is equal to the shear parameter times 256. <p> The area outside the image is filled with transparent black, unless another color is specified. </td> </tr> </table> <a name="a21" doxytag="FX::FXImage::hgradient"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::hgradient </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXColor </td> <td class="mdname" nowrap> <em>left</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>right</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Fill horizontal gradient. <p> </td> </tr> </table> <a name="a22" doxytag="FX::FXImage::vgradient"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::vgradient </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXColor </td> <td class="mdname" nowrap> <em>top</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>bottom</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Fill vertical gradient. <p> </td> </tr> </table> <a name="a23" doxytag="FX::FXImage::gradient"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::gradient </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXColor </td> <td class="mdname" nowrap> <em>topleft</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>topright</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>bottomleft</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXColor </td> <td class="mdname" nowrap> <em>bottomright</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Fill with gradient. <p> </td> </tr> </table> <a name="a24" doxytag="FX::FXImage::blend"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::blend </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FXColor </td> <td class="mdname1" valign="top" nowrap> <em>color</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Blend image over uniform color. <p> </td> </tr> </table> <a name="a25" doxytag="FX::FXImage::save"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::save </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> & </td> <td class="mdname1" valign="top" nowrap> <em>store</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Save object to stream. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXDrawable.html#a5">FX::FXDrawable</a>. </td> </tr> </table> <a name="a26" doxytag="FX::FXImage::load"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void FX::FXImage::load </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> & </td> <td class="mdname1" valign="top" nowrap> <em>store</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Load object from stream. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXDrawable.html#a6">FX::FXDrawable</a>. </td> </tr> </table> <a name="a27" doxytag="FX::FXImage::savePixels"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual FXbool FX::FXImage::savePixels </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> & </td> <td class="mdname1" valign="top" nowrap> <em>store</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Save pixel data only. <p> <p> Reimplemented in <a class="el" href="classFX_1_1FXBMPIcon.html#a1">FX::FXBMPIcon</a>, <a class="el" href="classFX_1_1FXBMPImage.html#a1">FX::FXBMPImage</a>, <a class="el" href="classFX_1_1FXGIFIcon.html#a1">FX::FXGIFIcon</a>, <a class="el" href="classFX_1_1FXGIFImage.html#a1">FX::FXGIFImage</a>, <a class="el" href="classFX_1_1FXICOIcon.html#a1">FX::FXICOIcon</a>, <a class="el" href="classFX_1_1FXICOImage.html#a1">FX::FXICOImage</a>, <a class="el" href="classFX_1_1FXJPGIcon.html#a1">FX::FXJPGIcon</a>, <a class="el" href="classFX_1_1FXJPGImage.html#a2">FX::FXJPGImage</a>, <a class="el" href="classFX_1_1FXPCXIcon.html#a1">FX::FXPCXIcon</a>, <a class="el" href="classFX_1_1FXPCXImage.html#a1">FX::FXPCXImage</a>, <a class="el" href="classFX_1_1FXPNGIcon.html#a1">FX::FXPNGIcon</a>, <a class="el" href="classFX_1_1FXPNGImage.html#a2">FX::FXPNGImage</a>, <a class="el" href="classFX_1_1FXPPMIcon.html#a1">FX::FXPPMIcon</a>, <a class="el" href="classFX_1_1FXPPMImage.html#a1">FX::FXPPMImage</a>, <a class="el" href="classFX_1_1FXRGBIcon.html#a1">FX::FXRGBIcon</a>, <a class="el" href="classFX_1_1FXRGBImage.html#a1">FX::FXRGBImage</a>, <a class="el" href="classFX_1_1FXTGAIcon.html#a1">FX::FXTGAIcon</a>, <a class="el" href="classFX_1_1FXTGAImage.html#a1">FX::FXTGAImage</a>, <a class="el" href="classFX_1_1FXTIFIcon.html#a3">FX::FXTIFIcon</a>, <a class="el" href="classFX_1_1FXTIFImage.html#a4">FX::FXTIFImage</a>, <a class="el" href="classFX_1_1FXXBMIcon.html#a1">FX::FXXBMIcon</a>, <a class="el" href="classFX_1_1FXXBMImage.html#a1">FX::FXXBMImage</a>, <a class="el" href="classFX_1_1FXXPMIcon.html#a1">FX::FXXPMIcon</a>, and <a class="el" href="classFX_1_1FXXPMImage.html#a1">FX::FXXPMImage</a>. </td> </tr> </table> <a name="a28" doxytag="FX::FXImage::loadPixels"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual FXbool FX::FXImage::loadPixels </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> & </td> <td class="mdname1" valign="top" nowrap> <em>store</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Load pixel data only. <p> <p> Reimplemented in <a class="el" href="classFX_1_1FXBMPIcon.html#a2">FX::FXBMPIcon</a>, <a class="el" href="classFX_1_1FXBMPImage.html#a2">FX::FXBMPImage</a>, <a class="el" href="classFX_1_1FXGIFIcon.html#a2">FX::FXGIFIcon</a>, <a class="el" href="classFX_1_1FXGIFImage.html#a2">FX::FXGIFImage</a>, <a class="el" href="classFX_1_1FXICOIcon.html#a2">FX::FXICOIcon</a>, <a class="el" href="classFX_1_1FXICOImage.html#a2">FX::FXICOImage</a>, <a class="el" href="classFX_1_1FXJPGIcon.html#a2">FX::FXJPGIcon</a>, <a class="el" href="classFX_1_1FXJPGImage.html#a1">FX::FXJPGImage</a>, <a class="el" href="classFX_1_1FXPCXIcon.html#a2">FX::FXPCXIcon</a>, <a class="el" href="classFX_1_1FXPCXImage.html#a2">FX::FXPCXImage</a>, <a class="el" href="classFX_1_1FXPNGIcon.html#a2">FX::FXPNGIcon</a>, <a class="el" href="classFX_1_1FXPNGImage.html#a1">FX::FXPNGImage</a>, <a class="el" href="classFX_1_1FXPPMIcon.html#a2">FX::FXPPMIcon</a>, <a class="el" href="classFX_1_1FXPPMImage.html#a2">FX::FXPPMImage</a>, <a class="el" href="classFX_1_1FXRGBIcon.html#a2">FX::FXRGBIcon</a>, <a class="el" href="classFX_1_1FXRGBImage.html#a2">FX::FXRGBImage</a>, <a class="el" href="classFX_1_1FXTGAIcon.html#a2">FX::FXTGAIcon</a>, <a class="el" href="classFX_1_1FXTGAImage.html#a2">FX::FXTGAImage</a>, <a class="el" href="classFX_1_1FXTIFIcon.html#a4">FX::FXTIFIcon</a>, <a class="el" href="classFX_1_1FXTIFImage.html#a3">FX::FXTIFImage</a>, <a class="el" href="classFX_1_1FXXBMIcon.html#a2">FX::FXXBMIcon</a>, <a class="el" href="classFX_1_1FXXBMImage.html#a2">FX::FXXBMImage</a>, <a class="el" href="classFX_1_1FXXPMIcon.html#a2">FX::FXXPMIcon</a>, and <a class="el" href="classFX_1_1FXXPMImage.html#a2">FX::FXXPMImage</a>. </td> </tr> </table> </font> <!--- COPYRIGHT --> <p> <table width=100% cellpadding=0 cellspacing=0><tr><td width=100% valign=top id=HEADLINE align=right> <img src='../art/line.gif' width=100% height=1><font size=-1> Copyright © 1997-2004 Jeroen van der Zijp</font> </td></tr></table> </p> <!--- COPYRIGHT --> </body> </html>