Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 661

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:02:56 CEST 2007 -->
<TITLE>
QPainter.CompositionMode
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QPainter.CompositionMode class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QPainter.CompositionMode";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.RenderHint.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QPainter.CompositionMode.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QPainter.CompositionMode.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Enum QPainter.CompositionMode</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.lang.Enum&lt;<A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A>&gt;
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QPainter.CompositionMode</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtEnumerator.html" title="interface in com.trolltech.qt">QtEnumerator</A>, java.io.Serializable, java.lang.Comparable&lt;<A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A>&gt;</DD>
</DL>
<DL>
<DT><B>Enclosing class:</B><DD><A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public static enum <B>QPainter.CompositionMode</B><DT>extends java.lang.Enum&lt;<A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A>&gt;<DT>implements <A HREF="../../../../com/trolltech/qt/QtEnumerator.html" title="interface in com.trolltech.qt">QtEnumerator</A></DL>
</PRE>

<P>
<p>Defines the Porter-Duff rules for digital image compositing. Composition modes are used to specify how the pixels in one image, the source, are merged with the pixel in another image, the destination.</p>
<p align="center"><img src="%2E%2E/images/qpainter-compositionmode1.png" /></p><p align="center"><img src="%2E%2E/images/qpainter-compositionmode2.png" /></p><p>The most common type is SourceOver (often referred to as just alpha blending) where the source pixel is blended on top of the destination pixel in such a way that the alpha component of the source defines the translucency of the pixel.</p>
<p>When the paint device is a <a href="QImage.html"><tt>QImage</tt></a>, the image format must be set to Format_ARGB32Premultiplied or Format_ARGB32 for the composition modes to have any effect. For performance the premultiplied version is the preferred format.</p>
<p>When a composition mode is set it applies to all painting operator, pens, brushes, gradients and pixmap/image drawing.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QPainter.html#compositionMode()"><tt>compositionMode</tt></a>, 
<a href="QPainter.html#setCompositionMode(com.trolltech.qt.gui.QPainter.CompositionMode)"><tt>setCompositionMode</tt></a>, 
<CODE>Modes</tt></CODE>, 
<CODE>Composition Example</tt></CODE></DL>
<HR>

<P>
<!-- =========== ENUM CONSTANT SUMMARY =========== -->

<A NAME="enum_constant_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Enum Constant Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Clear">CompositionMode_Clear</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The pixels in the destination are cleared (set to fully transparent) independent of the source.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_ColorBurn">CompositionMode_ColorBurn</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The destination color is darkened to reflect the source color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_ColorDodge">CompositionMode_ColorDodge</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The destination color is brightened to reflect the source color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Darken">CompositionMode_Darken</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The darker of the source and destination colors is selected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Destination">CompositionMode_Destination</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the destination pixel.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_DestinationAtop">CompositionMode_DestinationAtop</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The destination pixel is blended on top of the source, with the alpha of the destination pixel is reduced by the alpha of the destination pixel.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_DestinationIn">CompositionMode_DestinationIn</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the destination, where the alpha is reduced by that of the source.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_DestinationOut">CompositionMode_DestinationOut</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the destination, where the alpha is reduced by the inverse of the source.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_DestinationOver">CompositionMode_DestinationOver</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The alpha of the destination is used to blend it on top of the source pixels.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Difference">CompositionMode_Difference</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subtracts the darker of the colors from the lighter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Exclusion">CompositionMode_Exclusion</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Similar to <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_Difference</tt></a>, but with a lower contrast.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_HardLight">CompositionMode_HardLight</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Multiplies or screens the colors depending on the source color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Lighten">CompositionMode_Lighten</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The lighter of the source and destination colors is selected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Multiply">CompositionMode_Multiply</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the source color multiplied by the destination.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Overlay">CompositionMode_Overlay</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Multiplies or screens the colors depending on the destination color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Plus">CompositionMode_Plus</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Both the alpha and color of the source and destination pixels are added together.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Screen">CompositionMode_Screen</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The source and destination colors are inverted and then multiplied.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_SoftLight">CompositionMode_SoftLight</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Darkens or lightens the colors depending on the source color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Source">CompositionMode_Source</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the source pixel.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_SourceAtop">CompositionMode_SourceAtop</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The source pixel is blended on top of the destination, with the alpha of the source pixel reduced by the alpha of the destination pixel.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_SourceIn">CompositionMode_SourceIn</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the source, where the alpha is reduced by that of the destination.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_SourceOut">CompositionMode_SourceOut</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The output is the source, where the alpha is reduced by the inverse of destination.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_SourceOver">CompositionMode_SourceOver</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the default mode.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#CompositionMode_Xor">CompositionMode_Xor</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The source, whose alpha is reduced with the inverse of the destination alpha, is merged with the destination, whose alpha is reduced by the inverse of the source alpha.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#resolve(int)">resolve</A></B>(int&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#value()">value</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#valueOf(java.lang.String)">valueOf</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the enum constant of this type with the specified name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html#values()">values</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array containing the constants of this enum type, in
the order they're declared.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Enum"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Enum</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ ENUM CONSTANT DETAIL =========== -->

<A NAME="enum_constant_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Enum Constant Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="CompositionMode_SourceOver"><!-- --></A><H3>
CompositionMode_SourceOver</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_SourceOver</B></PRE>
<DL>
<DD><p>This is the default mode. The alpha of the source is used to blend the pixel on top of the destination.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_DestinationOver"><!-- --></A><H3>
CompositionMode_DestinationOver</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_DestinationOver</B></PRE>
<DL>
<DD><p>The alpha of the destination is used to blend it on top of the source pixels. This mode is the inverse of <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_SourceOver</tt></a>.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Clear"><!-- --></A><H3>
CompositionMode_Clear</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Clear</B></PRE>
<DL>
<DD><p>The pixels in the destination are cleared (set to fully transparent) independent of the source.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Source"><!-- --></A><H3>
CompositionMode_Source</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Source</B></PRE>
<DL>
<DD><p>The output is the source pixel. (This means a basic copy operation and is identical to SourceOver when the source pixel is opaque).</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Destination"><!-- --></A><H3>
CompositionMode_Destination</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Destination</B></PRE>
<DL>
<DD><p>The output is the destination pixel. This means that the blending has no effect. This mode is the inverse of <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_Source</tt></a>.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_SourceIn"><!-- --></A><H3>
CompositionMode_SourceIn</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_SourceIn</B></PRE>
<DL>
<DD><p>The output is the source, where the alpha is reduced by that of the destination.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_DestinationIn"><!-- --></A><H3>
CompositionMode_DestinationIn</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_DestinationIn</B></PRE>
<DL>
<DD><p>The output is the destination, where the alpha is reduced by that of the source. This mode is the inverse of <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_SourceIn</tt></a>.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_SourceOut"><!-- --></A><H3>
CompositionMode_SourceOut</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_SourceOut</B></PRE>
<DL>
<DD><p>The output is the source, where the alpha is reduced by the inverse of destination.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_DestinationOut"><!-- --></A><H3>
CompositionMode_DestinationOut</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_DestinationOut</B></PRE>
<DL>
<DD><p>The output is the destination, where the alpha is reduced by the inverse of the source. This mode is the inverse of <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_SourceOut</tt></a>.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_SourceAtop"><!-- --></A><H3>
CompositionMode_SourceAtop</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_SourceAtop</B></PRE>
<DL>
<DD><p>The source pixel is blended on top of the destination, with the alpha of the source pixel reduced by the alpha of the destination pixel.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_DestinationAtop"><!-- --></A><H3>
CompositionMode_DestinationAtop</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_DestinationAtop</B></PRE>
<DL>
<DD><p>The destination pixel is blended on top of the source, with the alpha of the destination pixel is reduced by the alpha of the destination pixel. This mode is the inverse of <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_SourceAtop</tt></a>.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Xor"><!-- --></A><H3>
CompositionMode_Xor</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Xor</B></PRE>
<DL>
<DD><p>The source, whose alpha is reduced with the inverse of the destination alpha, is merged with the destination, whose alpha is reduced by the inverse of the source alpha. <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_Xor</tt></a> is not the same as the bitwise Xor.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Plus"><!-- --></A><H3>
CompositionMode_Plus</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Plus</B></PRE>
<DL>
<DD><p>Both the alpha and color of the source and destination pixels are added together.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Multiply"><!-- --></A><H3>
CompositionMode_Multiply</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Multiply</B></PRE>
<DL>
<DD><p>The output is the source color multiplied by the destination. Multiplying a color with white leaves the color unchanged, while multiplying a color with black produces black.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Screen"><!-- --></A><H3>
CompositionMode_Screen</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Screen</B></PRE>
<DL>
<DD><p>The source and destination colors are inverted and then multiplied. Screening a color with white produces white, whereas screening a color with black leaves the color unchanged.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Overlay"><!-- --></A><H3>
CompositionMode_Overlay</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Overlay</B></PRE>
<DL>
<DD><p>Multiplies or screens the colors depending on the destination color. The destination color is mixed with the source color to reflect the lightness or darkness of the destination.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Darken"><!-- --></A><H3>
CompositionMode_Darken</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Darken</B></PRE>
<DL>
<DD><p>The darker of the source and destination colors is selected.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Lighten"><!-- --></A><H3>
CompositionMode_Lighten</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Lighten</B></PRE>
<DL>
<DD><p>The lighter of the source and destination colors is selected.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_ColorDodge"><!-- --></A><H3>
CompositionMode_ColorDodge</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_ColorDodge</B></PRE>
<DL>
<DD><p>The destination color is brightened to reflect the source color. A black source color leaves the destination color unchanged.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_ColorBurn"><!-- --></A><H3>
CompositionMode_ColorBurn</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_ColorBurn</B></PRE>
<DL>
<DD><p>The destination color is darkened to reflect the source color. A white source color leaves the destination color unchanged.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_HardLight"><!-- --></A><H3>
CompositionMode_HardLight</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_HardLight</B></PRE>
<DL>
<DD><p>Multiplies or screens the colors depending on the source color. A light source color will lighten the destination color, whereas a dark source color will darken the destination color.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_SoftLight"><!-- --></A><H3>
CompositionMode_SoftLight</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_SoftLight</B></PRE>
<DL>
<DD><p>Darkens or lightens the colors depending on the source color. Similar to <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_HardLight</tt></a>.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Difference"><!-- --></A><H3>
CompositionMode_Difference</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Difference</B></PRE>
<DL>
<DD><p>Subtracts the darker of the colors from the lighter. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged.</p>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="CompositionMode_Exclusion"><!-- --></A><H3>
CompositionMode_Exclusion</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>CompositionMode_Exclusion</B></PRE>
<DL>
<DD><p>Similar to <a href="QPainter.html#CompositionMode-enum"><tt>CompositionMode_Difference</tt></a>, but with a lower contrast. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged.</p>
<P>
<DL>
</DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="values()"><!-- --></A><H3>
values</H3>
<PRE>
public static final <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A>[] <B>values</B>()</PRE>
<DL>
<DD>Returns an array containing the constants of this enum type, in
the order they're declared.  This method may be used to iterate
over the constants as follows:
<pre>
for(QPainter.CompositionMode c : QPainter.CompositionMode.values())
        System.out.println(c);
</pre>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>an array containing the constants of this enum type, in
the order they're declared</DL>
</DD>
</DL>
<HR>

<A NAME="valueOf(java.lang.String)"><!-- --></A><H3>
valueOf</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>valueOf</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Returns the enum constant of this type with the specified name.
The string must match <I>exactly</I> an identifier used to declare an
enum constant in this type.  (Extraneous whitespace characters are 
not permitted.)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned.
<DT><B>Returns:</B><DD>the enum constant with the specified name
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if this enum type has no constant
with the specified name</DL>
</DD>
</DL>
<HR>

<A NAME="value()"><!-- --></A><H3>
value</H3>
<PRE>
public int <B>value</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/QtEnumerator.html#value()">value</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/QtEnumerator.html" title="interface in com.trolltech.qt">QtEnumerator</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resolve(int)"><!-- --></A><H3>
resolve</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QPainter.CompositionMode.html" title="enum in com.trolltech.qt.gui">QPainter.CompositionMode</A> <B>resolve</B>(int&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPainter.RenderHint.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QPainter.CompositionMode.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QPainter.CompositionMode.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>