<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: Imlib2::Filter</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">Imlib2::Filter</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/imlib2_c.html"> imlib2.c </a> (<a href="http://cvs.pablotron.org/cgi-bin/viewcvs.cgi/imlib2-ruby/imlib2.c">CVS</a>) <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> Object </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000375">alpha</a> <a href="#M000373">blue</a> <a href="#M000377">constants</a> <a href="#M000378">divisors</a> <a href="#M000371">green</a> <a href="#M000367">new</a> <a href="#M000366">new</a> <a href="#M000369">red</a> <a href="#M000368">set</a> <a href="#M000376">set_alpha</a> <a href="#M000374">set_blue</a> <a href="#M000372">set_green</a> <a href="#M000370">set_red</a> </div> </div> </div> <!-- if includes --> <div id="section"> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> <div id="method-M000367" class="method-detail"> <a name="M000367"></a> <div class="method-heading"> <a href="Filter.src/M000367.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000367.html');return false;"> <span class="method-name">new</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Constructor for <a href="Filter.html">Imlib2::Filter</a> </p> <p> Currently just a placeholder. </p> </div> </div> <div id="method-M000366" class="method-detail"> <a name="M000366"></a> <div class="method-heading"> <a href="Filter.src/M000366.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000366.html');return false;"> <span class="method-name">new</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Return a new <a href="Filter.html">Imlib2::Filter</a> </p> <p> Example: </p> <pre> filter = Imlib2::Filter.new </pre> </div> </div> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000375" class="method-detail"> <a name="M000375"></a> <div class="method-heading"> <a href="Filter.src/M000375.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000375.html');return false;"> <span class="method-name">alpha</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the alpha filter color value and x, y </p> <p> Example: </p> <pre> filter.set_alpha x, y, Imlib2::Color::RgbaColor.new 0, 0, 0, 128 </pre> </div> </div> <div id="method-M000373" class="method-detail"> <a name="M000373"></a> <div class="method-heading"> <a href="Filter.src/M000373.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000373.html');return false;"> <span class="method-name">blue</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the blue filter color value and x, y </p> <p> Example: </p> <pre> filter.set_blue x, y, Imlib2::Color::RgbaColor.new 0, 0, 64, 128 </pre> </div> </div> <div id="method-M000377" class="method-detail"> <a name="M000377"></a> <div class="method-heading"> <a href="Filter.src/M000377.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000377.html');return false;"> <span class="method-name">constants</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set filter constants. </p> <p> Example: </p> <pre> filter.set_constants RgbaColor.new 32, 32, 32, 32 </pre> </div> </div> <div id="method-M000378" class="method-detail"> <a name="M000378"></a> <div class="method-heading"> <a href="Filter.src/M000378.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000378.html');return false;"> <span class="method-name">divisors</span><span class="method-args">(p1)</span> </a> </div> <div class="method-description"> <p> Set filter divisors. </p> <p> Example: </p> <pre> filter.set_divisors RgbaColor.new 0, 32, 0, 32 </pre> </div> </div> <div id="method-M000371" class="method-detail"> <a name="M000371"></a> <div class="method-heading"> <a href="Filter.src/M000371.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000371.html');return false;"> <span class="method-name">green</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the green filter color value and x, y </p> <p> Example: </p> <pre> filter.set_green x, y, Imlib2::Color::RgbaColor.new 0, 128, 0, 128 </pre> </div> </div> <div id="method-M000369" class="method-detail"> <a name="M000369"></a> <div class="method-heading"> <span class="method-name">red</span><span class="method-args">(...)</span> </div> <div class="method-description"> </div> </div> <div id="method-M000368" class="method-detail"> <a name="M000368"></a> <div class="method-heading"> <a href="Filter.src/M000368.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000368.html');return false;"> <span class="method-name">set</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the filter color value and x, y </p> <p> Example: </p> <pre> filter.set x, y, Imlib2::Color::RED </pre> </div> </div> <div id="method-M000376" class="method-detail"> <a name="M000376"></a> <div class="method-heading"> <a href="Filter.src/M000376.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000376.html');return false;"> <span class="method-name">set_alpha</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the alpha filter color value and x, y </p> <p> Example: </p> <pre> filter.set_alpha x, y, Imlib2::Color::RgbaColor.new 0, 0, 0, 128 </pre> </div> </div> <div id="method-M000374" class="method-detail"> <a name="M000374"></a> <div class="method-heading"> <a href="Filter.src/M000374.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000374.html');return false;"> <span class="method-name">set_blue</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the blue filter color value and x, y </p> <p> Example: </p> <pre> filter.set_blue x, y, Imlib2::Color::RgbaColor.new 0, 0, 64, 128 </pre> </div> </div> <div id="method-M000372" class="method-detail"> <a name="M000372"></a> <div class="method-heading"> <a href="Filter.src/M000372.html" target="Code" class="method-signature" onclick="popupCode('Filter.src/M000372.html');return false;"> <span class="method-name">set_green</span><span class="method-args">(...)</span> </a> </div> <div class="method-description"> <p> Set the green filter color value and x, y </p> <p> Example: </p> <pre> filter.set_green x, y, Imlib2::Color::RgbaColor.new 0, 128, 0, 128 </pre> </div> </div> <div id="method-M000370" class="method-detail"> <a name="M000370"></a> <div class="method-heading"> <span class="method-name">set_red</span><span class="method-args">(...)</span> </div> <div class="method-description"> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>