Class CGBlendMode


  • public final class CGBlendMode
    extends java.lang.Object
    Blend 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 int Clear
      R = 0
      static int Color
      Available in Mac OS X 10.4 & later.
      static int ColorBurn
      Available in Mac OS X 10.4 & later.
      static int ColorDodge
      Available in Mac OS X 10.4 & later.
      static int Copy
      R = S
      static int Darken
      Available in Mac OS X 10.4 & later.
      static int DestinationAtop
      R = S*(1 - Da) + D*Sa
      static int DestinationIn
      R = D*Sa
      static int DestinationOut
      R = D*(1 - Sa)
      static int DestinationOver
      R = S*(1 - Da) + D
      static int Difference
      Available in Mac OS X 10.4 & later.
      static int Exclusion
      Available in Mac OS X 10.4 & later.
      static int HardLight
      Available in Mac OS X 10.4 & later.
      static int Hue
      Available in Mac OS X 10.4 & later.
      static int Lighten
      Available in Mac OS X 10.4 & later.
      static int Luminosity
      Available in Mac OS X 10.4 & later.
      static int Multiply
      Available in Mac OS X 10.4 & later.
      static int Normal
      Available in Mac OS X 10.4 & later.
      static int Overlay
      Available in Mac OS X 10.4 & later.
      static int PlusDarker
      R = MAX(0, (1 - D) + (1 - S))
      static int PlusLighter
      R = MIN(1, S + D)
      static int Saturation
      Available in Mac OS X 10.4 & later.
      static int Screen
      Available in Mac OS X 10.4 & later.
      static int SoftLight
      Available in Mac OS X 10.4 & later.
      static int SourceAtop
      R = S*Da + D*(1 - Sa)
      static int SourceIn
      R = S*Da
      static int SourceOut
      R = S*(1 - Da)
      static int XOR
      R = S*(1 - Da) + D*(1 - Sa)
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait