derive
derive: (AlphaComposite, number) -> AlphaCompositeThe same rule with alpha. Raises for an alpha out of range.
AlphaComposite.getInstance(…)
AlphaComposite.Clear
AlphaComposite.Src| Method | Returns | Description |
|---|---|---|
derive(number) | AlphaComposite | The same rule with alpha. Raises for an alpha out of range. |
getAlpha() | number | The extra alpha. |
getRule() | number | The rule constant. |
equals(any) | boolean | Whether other is an AlphaComposite with the same rule and alpha. |
getInstance(number) | AlphaComposite | (number) -> AlphaComposite: The composite for rule with alpha 1. Raises for an unknown rule. |
getInstance(number, number) | AlphaComposite |
| Field | Type | Description |
|---|---|---|
CLEAR | number | CLEAR: 1. |
SRC | number | SRC: 2. |
SRC_OVER | number | SRC_OVER: 3. |
DST_OVER | number | DST_OVER: 4. |
SRC_IN | number | SRC_IN: 5. |
DST_IN | number | DST_IN: 6. |
SRC_OUT | number | SRC_OUT: 7. |
DST_OUT | number | DST_OUT: 8. |
DST | number | DST: 9. |
SRC_ATOP | number | SRC_ATOP: 10. |
DST_ATOP | number | DST_ATOP: 11. |
XOR | number | XOR: 12. |
Clear | AlphaComposite | Clear, alpha 1. |
Src | AlphaComposite | Src, alpha 1. |
SrcOver | AlphaComposite | SrcOver, alpha 1: the default. |
DstOver | AlphaComposite | DstOver, alpha 1. |
SrcIn | AlphaComposite | SrcIn, alpha 1. |
DstIn | AlphaComposite | DstIn, alpha 1. |
SrcOut | AlphaComposite | SrcOut, alpha 1. |
DstOut | AlphaComposite | DstOut, alpha 1. |
Dst | AlphaComposite | Dst, alpha 1. |
SrcAtop | AlphaComposite | SrcAtop, alpha 1. |
DstAtop | AlphaComposite | DstAtop, alpha 1. |
Xor | AlphaComposite | Xor, alpha 1. |
| Method | Returns | Description |
|---|---|---|
AlphaCompositeClass.getInstance | AlphaComposite | (number) -> AlphaComposite: The composite for rule with alpha 1. Raises for an unknown rule. |
Graphics2D.getComposite | AlphaComposite | The current composite. |
derivederive: (AlphaComposite, number) -> AlphaCompositeThe same rule with alpha. Raises for an alpha out of range.
getAlphagetAlpha: (AlphaComposite) -> numberThe extra alpha.
getRulegetRule: (AlphaComposite) -> numberThe rule constant.
equalsequals: (AlphaComposite, any) -> booleanWhether other is an AlphaComposite with the same rule and alpha.
getInstancegetInstance: ((number) -> AlphaComposite) & ((number, number) -> AlphaComposite)(number) -> AlphaComposite: The composite for rule with alpha 1. Raises for an unknown rule.
(number, number) -> AlphaComposite: The composite for rule with alpha (0..1). Raises for an unknown rule or an alpha out of range.