Java java.awt AlphaComposite fields, constructors, methods, implement or subclass

Example usage for Java java.awt AlphaComposite fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt AlphaComposite.

The text is from its open source code.

Field

intCLEAR
Both the color and the alpha of the destination are cleared (Porter-Duff Clear rule).
intDST
The destination is left untouched (Porter-Duff Destination rule).
intSRC_OVER
The source is composited over the destination (Porter-Duff Source Over Destination rule).
intDST_OVER
The destination is composited over the source and the result replaces the destination (Porter-Duff Destination Over Source rule).
intSRC_IN
The part of the source lying inside of the destination replaces the destination (Porter-Duff Source In Destination rule).
intDST_IN
The part of the destination lying inside of the source replaces the destination (Porter-Duff Destination In Source rule).
intSRC_OUT
The part of the source lying outside of the destination replaces the destination (Porter-Duff Source Held Out By Destination rule).
intDST_OUT
The part of the destination lying outside of the source replaces the destination (Porter-Duff Destination Held Out By Source rule).
intSRC_ATOP
The part of the source lying inside of the destination is composited onto the destination (Porter-Duff Source Atop Destination rule).
intDST_ATOP
The part of the destination lying inside of the source is composited over the source and replaces the destination (Porter-Duff Destination Atop Source rule).
AlphaCompositeSrc
AlphaComposite object that implements the opaque SRC rule with an alpha of 1.0f.
AlphaCompositeSrcOver
AlphaComposite object that implements the opaque SRC_OVER rule with an alpha of 1.0f.
AlphaCompositeDstOver
AlphaComposite object that implements the opaque DST_OVER rule with an alpha of 1.0f.
AlphaCompositeSrcIn
AlphaComposite object that implements the opaque SRC_IN rule with an alpha of 1.0f.
AlphaCompositeDstIn
AlphaComposite object that implements the opaque DST_IN rule with an alpha of 1.0f.
AlphaCompositeSrcOut
AlphaComposite object that implements the opaque SRC_OUT rule with an alpha of 1.0f.
AlphaCompositeSrcAtop
AlphaComposite object that implements the opaque SRC_ATOP rule with an alpha of 1.0f.

Method

floatgetAlpha()
Returns the alpha value of this AlphaComposite .
AlphaCompositegetInstance(int rule, float alpha)
Creates an AlphaComposite object with the specified rule and the constant alpha to multiply with the alpha of the source.
AlphaCompositegetInstance(int rule)
Creates an AlphaComposite object with the specified rule.
intgetRule()
Returns the compositing rule of this AlphaComposite .