| <html> |
| <head> |
| <title>Constants' Group CompositeOperation</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../idl.css"> |
| </head> |
| <body> |
| <div id="adc-idlref"> |
| |
| <a name="_top_"> </a> |
| <table class="navimain" border="0" cellpadding="3"> |
| <tr> |
| <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> |
| <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> |
| <td class="navimainnone">Use</td> |
| <td class="navimainnone">Devguide</td> |
| <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> |
| </tr> |
| </table> |
| <table class="navisub" border="0" cellpadding="0"> |
| <tr> |
| <td class="navisub"><a href="#Constants" class="navisub">Constants</a></td> |
| <td class="navisub"><a href="#ConstantDetails" class="navisub">Constants' Details</a></td> |
| </tr> |
| </table> |
| <hr> |
| <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> |
| <tr> |
| <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">rendering</a> :: </p> |
| </td> |
| </tr> |
| <tr> |
| <td class="title"><table class="title-table" width="99%"> |
| <tr> |
| <td width="25%" class="title2">unpublished </td> |
| <td width="50%" class="title">constants group CompositeOperation</td> |
| <td width="*"/></tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td><dl> |
| <dt><b>Description</b></dt> |
| <dd>These constants determine how the primitive color is combined with |
| the background. </dd> |
| <dd><p> |
| |
| When performing this calculations, it is assumed that all color |
| values are premultiplied with the corresponding alpha values (if |
| no alpha is specified, 1.0 is assumed). Then, the following |
| general compositing operation is performed: |
| <p> |
| C = Ca * Fa + Cb * Fb |
| <p> |
| where C is the result color, Ca and Cb are the input colors, |
| premultiplied with alpha, and Fa and Fb are described for the |
| different composite modes (wherein Aa and Ab denote source and |
| destination alpha, respectively). <p> |
| |
| </dd> |
| <dt><b>Since </b></dt> |
| <dd>OOo 2.0.0 </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| <hr> |
| <a name="Constants"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> |
| <tr> |
| <td class="subtitle" colspan="2">Constants</td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#CLEAR">CLEAR</a></td> |
| <td class="imsum_right">Clear the destination. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#SOURCE">SOURCE</a></td> |
| <td class="imsum_right">Copy source as-is to the destination. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#DESTINATION">DESTINATION</a></td> |
| <td class="imsum_right">Leave the destination as-is. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#OVER">OVER</a></td> |
| <td class="imsum_right">Copy the source over the destination. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#UNDER">UNDER</a></td> |
| <td class="imsum_right">Copy the source under the destination. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#INSIDE">INSIDE</a></td> |
| <td class="imsum_right">Copy the source to the destination. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#INSIDE_REVERSE">INSIDE_REVERSE</a></td> |
| <td class="imsum_right">Leave the destination as is. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#OUTSIDE">OUTSIDE</a></td> |
| <td class="imsum_right">Copy the source to the destination </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#OUTSIDE_REVERSE">OUTSIDE_REVERSE</a></td> |
| <td class="imsum_right">Leave the destination as is. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#ATOP">ATOP</a></td> |
| <td class="imsum_right">Copy the source over the destination </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#ATOP_REVERSE">ATOP_REVERSE</a></td> |
| <td class="imsum_right">Copy the destination over the source. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#XOR">XOR</a></td> |
| <td class="imsum_right">Combine source and destination by exclusive or. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#ADD">ADD</a></td> |
| <td class="imsum_right">Add source and destination values. </td> |
| </tr> |
| <tr> |
| <td class="imsum_left"><a href="#SATURATE">SATURATE</a></td> |
| <td class="imsum_right">Saturate source and destination. </td> |
| </tr> |
| </table> |
| <a name="ConstantDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> |
| <tr> |
| <td class="subtitle">Constants' Details</td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="CLEAR" class="membertitle">CLEAR</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>CLEAR</b> = 0;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Clear the destination. </dd> |
| <dd><p> |
| |
| Clear the destination area. The function values are: Fa = Fb = |
| 0. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="SOURCE" class="membertitle">SOURCE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>SOURCE</b> = 1;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy source as-is to the destination. </dd> |
| <dd><p> |
| |
| Copy source as-is to the destination. The function values are: |
| Fa = 1, Fb = 0. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="DESTINATION" class="membertitle">DESTINATION</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>DESTINATION</b> = 2;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Leave the destination as-is. </dd> |
| <dd><p> |
| |
| Leave the destination as-is. The function values are: Fa = 0, |
| Fb = 1. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="OVER" class="membertitle">OVER</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>OVER</b> = 3;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy the source over the destination. </dd> |
| <dd><p> |
| |
| Copy the source over the destination. The function values are: |
| Fa = 1, Fb = 1-Aa. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="UNDER" class="membertitle">UNDER</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>UNDER</b> = 4;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy the source under the destination. </dd> |
| <dd><p> |
| |
| Copy the source under the destination. The function values |
| are: Fa = 1-Ab, Fb = 1. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="INSIDE" class="membertitle">INSIDE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>INSIDE</b> = 5;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy the source to the destination. </dd> |
| <dd><p> |
| |
| Copy the source to the destination, but limited to where the |
| destination is. The function values are: Fa = Ab, Fb = 0. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="INSIDE_REVERSE" class="membertitle">INSIDE_REVERSE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>INSIDE_REVERSE</b> = 6;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Leave the destination as is. </dd> |
| <dd><p> |
| |
| Leave the destination as is, but only where the source |
| was. The function values are: Fa = 0, Fb = Aa. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="OUTSIDE" class="membertitle">OUTSIDE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>OUTSIDE</b> = 7;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy the source to the destination </dd> |
| <dd><p> |
| |
| Copy the source to the destination, but limited to where the |
| destination is not. The function values are: Fa = 1-Ab, Fb = |
| 0. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="OUTSIDE_REVERSE" class="membertitle">OUTSIDE_REVERSE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>OUTSIDE_REVERSE</b> = 8;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Leave the destination as is. </dd> |
| <dd><p> |
| |
| Leave the destination as is, but only where the source has not |
| been. The function values are: Fa = 0, Fb = 1-Aa. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="ATOP" class="membertitle">ATOP</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>ATOP</b> = 9;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy the source over the destination </dd> |
| <dd><p> |
| |
| Copy the source over the destination, but only where the |
| destination is. Keep the destination. The function values are: |
| Fa = Ab, Fb = 1-Aa. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="ATOP_REVERSE" class="membertitle">ATOP_REVERSE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>ATOP_REVERSE</b> = 10;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Copy the destination over the source. </dd> |
| <dd><p> |
| |
| Copy the destination over the source, but only where the |
| source is. Keep the source. The function values are: Fa = |
| 1-Ab, Fb = Aa. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="XOR" class="membertitle">XOR</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>XOR</b> = 11;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Combine source and destination by exclusive or. </dd> |
| <dd><p> |
| |
| Take only the parts where either source or destination, but |
| not both visible. The function values are: Fa = 1-Ab, Fb = |
| 1-Aa. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="ADD" class="membertitle">ADD</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>ADD</b> = 12;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Add source and destination values. </dd> |
| <dd><p> |
| |
| Simply add contributions of both source and destination. The |
| resulting color values are limited to the permissible color |
| range, and clipped to the maximal value, if exceeded. The |
| function values are: Fa = 1, Fb = 1. <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td class="imdetail"><a name="SATURATE" class="membertitle">SATURATE</a> |
| <table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> |
| <tr> |
| <td>const byte <b>SATURATE</b> = 13;<hr> |
| <dl> |
| <dt><b>Description</b></dt> |
| <dd>Saturate source and destination. </dd> |
| <dd><p> |
| |
| Saturate destination with source values. The function values |
| are: Fa = min(1,(1-Ab)/Aa), Fb = 1 <p> |
| </dd> |
| </dl> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2003 Sun Microsystems, Inc.</p> |
| |
| </div> <!-- id="adc-idlref" --> |
| </body> |
| |
| </html> |