Package apple.coregraphics.enums
Class CGBlendMode
- java.lang.Object
-
- apple.coregraphics.enums.CGBlendMode
-
public final class CGBlendMode extends java.lang.ObjectBlend modes. The blend modes from kCGBlendModeNormal to kCGBlendModeLuminosity are supported in Mac OS X 10.4 and later. The Porter-Duff blend modes (from kCGBlendModeClear to kCGBlendModePlusLighter) are supported in Mac OS X 10.5 and later. The names of the Porter-Duff blend modes are historical. Note that the Porter-Duff blend modes are not necessarily supported in every context. In particular, they are only guaranteed to work in bitmap-based contexts, such as those created by CGBitmapContextCreate. It is your responsibility to make sure that they do what you want when you use them in a CGContext.
-
-
Field Summary
Fields Modifier and Type Field Description static intClearR = 0static intColorAvailable in Mac OS X 10.4 & later.static intColorBurnAvailable in Mac OS X 10.4 & later.static intColorDodgeAvailable in Mac OS X 10.4 & later.static intCopyR = Sstatic intDarkenAvailable in Mac OS X 10.4 & later.static intDestinationAtopR = S*(1 - Da) + D*Sastatic intDestinationInR = D*Sastatic intDestinationOutR = D*(1 - Sa)static intDestinationOverR = S*(1 - Da) + Dstatic intDifferenceAvailable in Mac OS X 10.4 & later.static intExclusionAvailable in Mac OS X 10.4 & later.static intHardLightAvailable in Mac OS X 10.4 & later.static intHueAvailable in Mac OS X 10.4 & later.static intLightenAvailable in Mac OS X 10.4 & later.static intLuminosityAvailable in Mac OS X 10.4 & later.static intMultiplyAvailable in Mac OS X 10.4 & later.static intNormalAvailable in Mac OS X 10.4 & later.static intOverlayAvailable in Mac OS X 10.4 & later.static intPlusDarkerR = MAX(0, (1 - D) + (1 - S))static intPlusLighterR = MIN(1, S + D)static intSaturationAvailable in Mac OS X 10.4 & later.static intScreenAvailable in Mac OS X 10.4 & later.static intSoftLightAvailable in Mac OS X 10.4 & later.static intSourceAtopR = S*Da + D*(1 - Sa)static intSourceInR = S*Dastatic intSourceOutR = S*(1 - Da)static intXORR = S*(1 - Da) + D*(1 - Sa)
-
-
-
Field Detail
-
Normal
public static final int Normal
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Multiply
public static final int Multiply
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Screen
public static final int Screen
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Overlay
public static final int Overlay
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Darken
public static final int Darken
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Lighten
public static final int Lighten
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
ColorDodge
public static final int ColorDodge
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
ColorBurn
public static final int ColorBurn
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
SoftLight
public static final int SoftLight
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
HardLight
public static final int HardLight
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Difference
public static final int Difference
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Exclusion
public static final int Exclusion
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Hue
public static final int Hue
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Saturation
public static final int Saturation
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Color
public static final int Color
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Luminosity
public static final int Luminosity
Available in Mac OS X 10.4 & later.- See Also:
- Constant Field Values
-
Clear
public static final int Clear
R = 0- See Also:
- Constant Field Values
-
Copy
public static final int Copy
R = S- See Also:
- Constant Field Values
-
SourceIn
public static final int SourceIn
R = S*Da- See Also:
- Constant Field Values
-
SourceOut
public static final int SourceOut
R = S*(1 - Da)- See Also:
- Constant Field Values
-
SourceAtop
public static final int SourceAtop
R = S*Da + D*(1 - Sa)- See Also:
- Constant Field Values
-
DestinationOver
public static final int DestinationOver
R = S*(1 - Da) + D- See Also:
- Constant Field Values
-
DestinationIn
public static final int DestinationIn
R = D*Sa- See Also:
- Constant Field Values
-
DestinationOut
public static final int DestinationOut
R = D*(1 - Sa)- See Also:
- Constant Field Values
-
DestinationAtop
public static final int DestinationAtop
R = S*(1 - Da) + D*Sa- See Also:
- Constant Field Values
-
XOR
public static final int XOR
R = S*(1 - Da) + D*(1 - Sa)- See Also:
- Constant Field Values
-
PlusDarker
public static final int PlusDarker
R = MAX(0, (1 - D) + (1 - S))- See Also:
- Constant Field Values
-
PlusLighter
public static final int PlusLighter
R = MIN(1, S + D)- See Also:
- Constant Field Values
-
-