Class CIColor

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class CIColor
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • CIColor

      public CIColor()
    • CIColor

      protected CIColor​(NSObject.Handle h, long handle)
    • CIColor

      protected CIColor​(NSObject.SkipInit skipInit)
    • CIColor

      public CIColor​(double r, double g, double b, double a, CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • CIColor

      public CIColor​(double r, double g, double b, CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • CIColor

      public CIColor​(NSCoder coder)
    • CIColor

      public CIColor​(double r, double g, double b, double a)
    • CIColor

      public CIColor​(double r, double g, double b)
    • CIColor

      public CIColor​(String representation)
  • Method Details

    • getNumberOfComponents

      public long getNumberOfComponents()
    • getComponents

      protected MachineSizedFloatPtr getComponents()
    • getAlpha

      public double getAlpha()
    • getColorSpace

      public CGColorSpace getColorSpace()
    • getRed

      public double getRed()
    • getGreen

      public double getGreen()
    • getBlue

      public double getBlue()
    • getStringRepresentation

      public String getStringRepresentation()
    • blackColor

      public static CIColor blackColor()
      Since:
      Available in iOS 10.0 and later.
    • whiteColor

      public static CIColor whiteColor()
      Since:
      Available in iOS 10.0 and later.
    • grayColor

      public static CIColor grayColor()
      Since:
      Available in iOS 10.0 and later.
    • redColor

      public static CIColor redColor()
      Since:
      Available in iOS 10.0 and later.
    • greenColor

      public static CIColor greenColor()
      Since:
      Available in iOS 10.0 and later.
    • blueColor

      public static CIColor blueColor()
      Since:
      Available in iOS 10.0 and later.
    • cyanColor

      public static CIColor cyanColor()
      Since:
      Available in iOS 10.0 and later.
    • magentaColor

      public static CIColor magentaColor()
      Since:
      Available in iOS 10.0 and later.
    • yellowColor

      public static CIColor yellowColor()
      Since:
      Available in iOS 10.0 and later.
    • clearColor

      public static CIColor clearColor()
      Since:
      Available in iOS 10.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getComponentsD

      public double[] getComponentsD()
    • getComponentsF

      public float[] getComponentsF()
    • fromUIColor

      public static CIColor fromUIColor​(UIColor color)
    • init

      protected long init​(double r, double g, double b, double a, CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • init

      protected long init​(double r, double g, double b, CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • create

      protected static long create​(CGColor c)
    • create

      protected static long create​(double r, double g, double b, double a)
    • create

      protected static long create​(double r, double g, double b)
    • create

      protected static long create​(double r, double g, double b, double a, CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • create

      protected static long create​(double r, double g, double b, CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • create

      protected static long create​(String representation)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)