Class CIImage

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class CIImage
extends NSObject
implements NSSecureCoding
  • Constructor Details

  • Method Details

    • getBlackImage

      public static CIImage getBlackImage()
      Since:
      Available in iOS 13.0 and later.
    • getWhiteImage

      public static CIImage getWhiteImage()
      Since:
      Available in iOS 13.0 and later.
    • getGrayImage

      public static CIImage getGrayImage()
      Since:
      Available in iOS 13.0 and later.
    • getRedImage

      public static CIImage getRedImage()
      Since:
      Available in iOS 13.0 and later.
    • getGreenImage

      public static CIImage getGreenImage()
      Since:
      Available in iOS 13.0 and later.
    • getBlueImage

      public static CIImage getBlueImage()
      Since:
      Available in iOS 13.0 and later.
    • getCyanImage

      public static CIImage getCyanImage()
      Since:
      Available in iOS 13.0 and later.
    • getMagentaImage

      public static CIImage getMagentaImage()
      Since:
      Available in iOS 13.0 and later.
    • getYellowImage

      public static CIImage getYellowImage()
      Since:
      Available in iOS 13.0 and later.
    • getClearImage

      public static CIImage getClearImage()
      Since:
      Available in iOS 13.0 and later.
    • getExtent

      public CGRect getExtent()
    • getProperties

      public NSDictionary<NSString,​?> getProperties()
    • getUrl

      public NSURL getUrl()
      Since:
      Available in iOS 9.0 and later.
    • getColorSpace

      public CGColorSpace getColorSpace()
      Since:
      Available in iOS 9.0 and later.
    • getPixelBuffer

      public CVPixelBuffer getPixelBuffer()
      Since:
      Available in iOS 10.0 and later.
    • getCGImage

      public CGImage getCGImage()
      Since:
      Available in iOS 10.0 and later.
    • getDepthData

      public AVDepthData getDepthData()
      Since:
      Available in iOS 11.0 and later.
    • getPortraitEffectsMatte

      public AVPortraitEffectsMatte getPortraitEffectsMatte()
      Since:
      Available in iOS 12.0 and later.
    • getSemanticSegmentationMatte

      public AVSemanticSegmentationMatte getSemanticSegmentationMatte()
      Since:
      Available in iOS 13.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(CGImage image)
    • init

      protected long init​(CGImage image, CIImageOptions options)
    • init

      protected long init​(CGImageSource source, long index, CIImageOptions dict)
      Since:
      Available in iOS 13.0 and later.
    • init

      protected long init​(NSData data)
    • init

      protected long init​(NSData data, CIImageOptions options)
    • init

      protected long init​(NSData data, long bytesPerRow, CGSize size, int format, CGColorSpace colorSpace)
    • init

      @Deprecated protected long init​(int name, CGSize size, boolean flipped, CGColorSpace colorSpace)
      Deprecated.
      Deprecated in iOS 12.0. Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)
    • init

      protected long init​(MTLTexture texture, CIImageOptions options)
      Since:
      Available in iOS 9.0 and later.
    • init

      protected long init​(NSURL url)
    • init

      protected long init​(NSURL url, CIImageOptions options)
    • init

      protected long init​(IOSurface surface)
    • init

      protected long init​(IOSurface surface, CIImageOptions options)
    • init

      protected long init​(CVImageBuffer imageBuffer)
      Since:
      Available in iOS 9.0 and later.
    • init

      protected long init​(CVImageBuffer imageBuffer, CIImageOptions options)
      Since:
      Available in iOS 9.0 and later.
    • init

      protected long init​(CVPixelBuffer pixelBuffer)
    • init

      protected long init​(CVPixelBuffer pixelBuffer, CIImageOptions options)
    • init

      protected long init​(CIColor color)
    • newImageByApplyingTransform

      public CIImage newImageByApplyingTransform​(CGAffineTransform matrix)
    • newImageByApplyingTransform

      public CIImage newImageByApplyingTransform​(CGAffineTransform matrix, boolean highQualityDownsample)
      Since:
      Available in iOS 10.0 and later.
    • newImageByApplyingOrientation

      public CIImage newImageByApplyingOrientation​(CGImagePropertyOrientation orientation)
    • getImageTransformForOrientation

      public CGAffineTransform getImageTransformForOrientation​(CGImagePropertyOrientation orientation)
    • newImageByApplyingCGOrientation

      public CIImage newImageByApplyingCGOrientation​(CGImagePropertyOrientation orientation)
      Since:
      Available in iOS 11.0 and later.
    • imageTransformForCGOrientation

      public CGAffineTransform imageTransformForCGOrientation​(CGImagePropertyOrientation orientation)
      Since:
      Available in iOS 11.0 and later.
    • newImageByCompositingOverImage

      public CIImage newImageByCompositingOverImage​(CIImage dest)
    • newImageByCroppingToRect

      public CIImage newImageByCroppingToRect​(CGRect rect)
    • newImageByClampingToExtent

      public CIImage newImageByClampingToExtent()
    • newImageByClampingToRect

      public CIImage newImageByClampingToRect​(CGRect rect)
      Since:
      Available in iOS 10.0 and later.
    • newImageByApplyingFilter

      public CIImage newImageByApplyingFilter​(String filterName, CIFilterInputParameters params)
    • newImageByApplyingFilter

      public CIImage newImageByApplyingFilter​(String filterName)
      Since:
      Available in iOS 11.0 and later.
    • newImageByColorMatchingColorSpaceToWorkingSpace

      public CIImage newImageByColorMatchingColorSpaceToWorkingSpace​(CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • newImageByColorMatchingWorkingSpaceToColorSpace

      public CIImage newImageByColorMatchingWorkingSpaceToColorSpace​(CGColorSpace colorSpace)
      Since:
      Available in iOS 10.0 and later.
    • newImageByPremultiplyingAlpha

      public CIImage newImageByPremultiplyingAlpha()
      Since:
      Available in iOS 10.0 and later.
    • newImageByUnpremultiplyingAlpha

      public CIImage newImageByUnpremultiplyingAlpha()
      Since:
      Available in iOS 10.0 and later.
    • newImageBySettingAlphaOneInExtent

      public CIImage newImageBySettingAlphaOneInExtent​(CGRect extent)
      Since:
      Available in iOS 10.0 and later.
    • newImageByApplyingGaussianBlurWithSigma

      public CIImage newImageByApplyingGaussianBlurWithSigma​(double sigma)
      Since:
      Available in iOS 10.0 and later.
    • newImageBySettingProperties

      public CIImage newImageBySettingProperties​(NSDictionary<?,​?> properties)
      Since:
      Available in iOS 10.0 and later.
    • newImageBySamplingLinear

      public CIImage newImageBySamplingLinear()
      Since:
      Available in iOS 11.0 and later.
    • newImageBySamplingNearest

      public CIImage newImageBySamplingNearest()
      Since:
      Available in iOS 11.0 and later.
    • newImageByInsertingIntermediate

      public CIImage newImageByInsertingIntermediate()
      Since:
      Available in iOS 12.0 and later.
    • newImageByInsertingIntermediate

      public CIImage newImageByInsertingIntermediate​(boolean cache)
      Since:
      Available in iOS 12.0 and later.
    • getRegionOfInterest

      public CGRect getRegionOfInterest​(CIImage image, CGRect rect)
    • getEmptyImage

      public static CIImage getEmptyImage()
    • getAutoAdjustmentFilters

      public NSArray<CIFilter> getAutoAdjustmentFilters()
    • getAutoAdjustmentFilters

      public NSArray<CIFilter> getAutoAdjustmentFilters​(CIImageAutoAdjustmentOptions options)
    • init

      protected long init​(AVDepthData data, NSDictionary<NSString,​?> options)
      Since:
      Available in iOS 11.0 and later.
    • init

      protected long init​(AVDepthData data)
      Since:
      Available in iOS 11.0 and later.
    • init

      protected long init​(AVPortraitEffectsMatte matte, CIImageOptions options)
      Since:
      Available in iOS 12.0 and later.
    • init

      protected long init​(AVPortraitEffectsMatte matte)
      Since:
      Available in iOS 11.0 and later.
    • init

      protected long init​(AVSemanticSegmentationMatte matte, CIImageOptions options)
      Since:
      Available in iOS 13.0 and later.
    • init

      protected long init​(AVSemanticSegmentationMatte matte)
      Since:
      Available in iOS 13.0 and later.
    • init

      protected long init​(NSObject p, long width, long height, int f, CGColorSpace cs, CIImageOptions options)
      Since:
      Available in iOS 9.0 and later.
    • encode

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

      protected long init​(NSCoder coder)