Package apple.coreimage
Class CIImage
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.coreimage.CIImage
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class CIImage extends NSObject implements NSSecureCoding, NSCopying
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCIImage(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static CIImagealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)NSArray<? extends CIFilter>autoAdjustmentFilters()Return an array of filters to apply to an image to improve its skin tones, saturation, contrast, shadows and repair red-eyes or LED-eyes.NSArray<? extends CIFilter>autoAdjustmentFiltersWithOptions(NSDictionary<java.lang.String,?> options)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static CIImageblackImage()Convenience constant color CIImages in the sRGB colorspace.static CIImageblueImage()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)CGImageRefCGImage()Returns a CGImageRef if the CIImage was created with [CIImage imageWithCGImage] or [CIImage imageWithContentsOfURL] and no options.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static CIImageclearImage()CGColorSpaceRefcolorSpace()Returns if possible the color space of the image it was defined in.java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static CIImagecyanImage()static java.lang.StringdebugDescription_static()AVDepthDatadepthData()Returns a AVDepthData if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and.static java.lang.Stringdescription_static()static CIImageemptyImage()Create an empty Image.voidencodeWithCoder(NSCoder coder)CGRectextent()Return a rect the defines the bounds of non-(0,0,0,0) pixelsstatic CIImagegrayImage()static CIImagegreenImage()static longhash_static()CIImageimageByApplyingCGOrientation(int orientation)Returns a new image representing the original image transformeded for the given CGImagePropertyOrientationCIImageimageByApplyingFilter(java.lang.String filterName)A convenience method for applying a filter to an image.CIImageimageByApplyingFilterWithInputParameters(java.lang.String filterName, NSDictionary<java.lang.String,?> params)A convenience method for applying a filter to an image.CIImageimageByApplyingGaussianBlurWithSigma(double sigma)Return a new image by applying a gaussian blur to the receiver.CIImageimageByApplyingOrientation(int orientation)Returns a new image representing the original image with a transform applied to it based on an orientation value.CIImageimageByApplyingTransform(CGAffineTransform matrix)Returns a new image representing the original image with the transform 'matrix' appended to it.CIImageimageByApplyingTransformHighQualityDownsample(CGAffineTransform matrix, boolean highQualityDownsample)specifying true or false here will override the context's kCIContextHighQualityDownsample setting.CIImageimageByClampingToExtent()Return a new infinite image by replicating the edge pixels of the receiver image.CIImageimageByClampingToRect(CGRect rect)Return a new infinite image by replicating the edge pixels of a rectangle.CIImageimageByColorMatchingColorSpaceToWorkingSpace(CGColorSpaceRef colorSpace)Return a new image by color matching from the colorSpace to the context's working space.CIImageimageByColorMatchingWorkingSpaceToColorSpace(CGColorSpaceRef colorSpace)Return a new image by color matching from the context's working space to the colorSpace.CIImageimageByCompositingOverImage(CIImage dest)Return a new image formed by compositing the receiver image over 'dest'.CIImageimageByCroppingToRect(CGRect rect)Return a new image cropped to a rectangle.CIImageimageByInsertingIntermediate()Returns a new image that inserts a intermediate that is cacheable according to the CIContext's kCIContextCacheIntermediates option.CIImageimageByInsertingIntermediate(boolean cache)Returns a new image that inserts a intermediate that is cacheable independent of the CIContext's kCIContextCacheIntermediates option.CIImageimageByPremultiplyingAlpha()Return a new image by multiplying the receiver's RGB values by its alpha.CIImageimageBySamplingLinear()Returns a new image by changing the receiver's sample mode to bilinear interpolation.CIImageimageBySamplingNearest()Returns a new image by changing the receiver's sample mode to nearest neighbor.CIImageimageBySettingAlphaOneInExtent(CGRect extent)Return a new image with alpha set to 1 within the rectangle and 0 outside.CIImageimageBySettingProperties(NSDictionary<?,?> properties)Return a new image by changing the recevier's properties.CIImageimageByUnpremultiplyingAlpha()Return a new image by dividing the receiver's RGB values by its alpha.CGAffineTransformimageTransformForCGOrientation(int orientation)Returns a CGAffineTransform for the CGImagePropertyOrientation value that can be applied to an image.CGAffineTransformimageTransformForOrientation(int orientation)Returns a CGAffineTransform for an orientation value that can be applied to an image.static CIImageimageWithBitmapDataBytesPerRowSizeFormatColorSpace(NSData data, long bytesPerRow, CGSize size, int format, CGColorSpaceRef colorSpace)Creates a new image whose bitmap data is from 'data'.static CIImageimageWithCGImage(CGImageRef image)Creates a new image from the contents of 'image'.static CIImageimageWithCGImageOptions(CGImageRef image, NSDictionary<java.lang.String,?> options)static CIImageimageWithCGImageSourceIndexOptions(CGImageSourceRef source, long index, NSDictionary<java.lang.String,?> dict)Creates a new image from the contents of 'source'.static CIImageimageWithColor(CIColor color)Return or initialize a new image with an infinite amount of the color 'color'.static CIImageimageWithContentsOfURL(NSURL url)static CIImageimageWithContentsOfURLOptions(NSURL url, NSDictionary<java.lang.String,?> options)static CIImageimageWithCVImageBuffer(CVBufferRef imageBuffer)Creates a new image whose data is from the contents of a CVImageBuffer.static CIImageimageWithCVImageBufferOptions(CVBufferRef imageBuffer, NSDictionary<java.lang.String,?> options)static CIImageimageWithCVPixelBuffer(CVBufferRef pixelBuffer)Creates a new image whose data is from the contents of a CVPixelBufferRef.static CIImageimageWithCVPixelBufferOptions(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options)static CIImageimageWithData(NSData data)static CIImageimageWithDataOptions(NSData data, NSDictionary<java.lang.String,?> options)static CIImageimageWithDepthData(AVDepthData data)static CIImageimageWithDepthDataOptions(AVDepthData data, NSDictionary<java.lang.String,?> options)static CIImageimageWithImageProviderSize_FormatColorSpaceOptions(java.lang.Object p, long width, long height, int f, CGColorSpaceRef cs, NSDictionary<java.lang.String,?> options)Create a new CIImage populated when rendered with data provided by 'p'.static CIImageimageWithIOSurface(IOSurfaceRef surface)Creates a new image from the contents of an IOSurface.static CIImageimageWithIOSurfaceOptions(IOSurfaceRef surface, NSDictionary<java.lang.String,?> options)static CIImageimageWithMTLTextureOptions(MTLTexture texture, NSDictionary<java.lang.String,?> options)Creates a new image referencing the contents of the Metal texture object.static CIImageimageWithPortaitEffectsMatte(AVPortraitEffectsMatte matte)static CIImageimageWithPortaitEffectsMatteOptions(AVPortraitEffectsMatte matte, NSDictionary<java.lang.String,?> options)static CIImageimageWithSemanticSegmentationMatte(AVSemanticSegmentationMatte matte)static CIImageimageWithSemanticSegmentationMatteOptions(AVSemanticSegmentationMatte matte, NSDictionary<java.lang.String,?> options)static CIImageimageWithTextureSizeFlippedColorSpace(int name, CGSize size, boolean flipped, CGColorSpaceRef colorSpace)Creates a new image referencing the contents of the GL texture object with identifier 'name'.CIImageinit()CIImageinitWithBitmapDataBytesPerRowSizeFormatColorSpace(NSData data, long bytesPerRow, CGSize size, int format, CGColorSpaceRef colorSpace)CIImageinitWithCGImage(CGImageRef image)Initializers.CIImageinitWithCGImageOptions(CGImageRef image, NSDictionary<java.lang.String,?> options)CIImageinitWithCGImageSourceIndexOptions(CGImageSourceRef source, long index, NSDictionary<java.lang.String,?> dict)CIImageinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERCIImageinitWithColor(CIColor color)CIImageinitWithContentsOfURL(NSURL url)CIImageinitWithContentsOfURLOptions(NSURL url, NSDictionary<java.lang.String,?> options)CIImageinitWithCVImageBuffer(CVBufferRef imageBuffer)CIImageinitWithCVImageBufferOptions(CVBufferRef imageBuffer, NSDictionary<java.lang.String,?> options)CIImageinitWithCVPixelBuffer(CVBufferRef pixelBuffer)CIImageinitWithCVPixelBufferOptions(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options)CIImageinitWithData(NSData data)CIImageinitWithDataOptions(NSData data, NSDictionary<java.lang.String,?> options)CIImageinitWithDepthData(AVDepthData data)CIImageinitWithDepthDataOptions(AVDepthData data, NSDictionary<java.lang.String,?> options)CIImageinitWithImage(UIImage image)CIImageinitWithImageOptions(UIImage image, NSDictionary<java.lang.String,?> options)CIImageinitWithImageProviderSize_FormatColorSpaceOptions(java.lang.Object p, long width, long height, int f, CGColorSpaceRef cs, NSDictionary<java.lang.String,?> options)CIImageinitWithIOSurface(IOSurfaceRef surface)CIImageinitWithIOSurfaceOptions(IOSurfaceRef surface, NSDictionary<java.lang.String,?> options)CIImageinitWithMTLTextureOptions(MTLTexture texture, NSDictionary<java.lang.String,?> options)initWithMTLTexture will return nil if textureType is not MTLTextureType2D.CIImageinitWithPortaitEffectsMatte(AVPortraitEffectsMatte matte)CIImageinitWithPortaitEffectsMatteOptions(AVPortraitEffectsMatte matte, NSDictionary<java.lang.String,?> options)CIImageinitWithSemanticSegmentationMatte(AVSemanticSegmentationMatte matte)CIImageinitWithSemanticSegmentationMatteOptions(AVSemanticSegmentationMatte matte, NSDictionary<java.lang.String,?> options)CIImageinitWithTextureSizeFlippedColorSpace(int name, CGSize size, boolean flipped, CGColorSpaceRef colorSpace)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static CIImagemagentaImage()static java.lang.Objectnew_objc()CVBufferRefpixelBuffer()Returns a CVPixelBufferRef if the CIImage was created with [CIImage imageWithCVPixelBuffer] and no options.AVPortraitEffectsMatteportraitEffectsMatte()Returns a AVPortraitEffectsMatte if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and.NSDictionary<java.lang.String,?>properties()Returns the metadata properties of an image.static CIImageredImage()CGRectregionOfInterestForImageInRect(CIImage image, CGRect rect)Returns the rectangle of 'image' that is required to render the rectangle 'rect' of the receiver.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)AVSemanticSegmentationMattesemanticSegmentationMatte()Returns a AVSemanticSegmentationMatte if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()NSURLurl()Returns the URL of the image when the image was created using the imageWithContentsOfURL APIs.static longversion_static()static CIImagewhiteImage()static CIImageyellowImage()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CIImage alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
emptyImage
public static CIImage emptyImage()
Create an empty Image.
-
hash_static
public static long hash_static()
-
imageWithBitmapDataBytesPerRowSizeFormatColorSpace
public static CIImage imageWithBitmapDataBytesPerRowSizeFormatColorSpace(NSData data, long bytesPerRow, CGSize size, int format, CGColorSpaceRef colorSpace)
Creates a new image whose bitmap data is from 'data'. Each row contains 'bytesPerRow' bytes. The dimensions of the image are defined by 'size'. 'format' defines the format and size of each pixel. 'colorSpace' defines the color space that the image is defined in, if nil, the image is not color matched.
-
imageWithCGImage
public static CIImage imageWithCGImage(CGImageRef image)
Creates a new image from the contents of 'image'.
-
imageWithCGImageOptions
public static CIImage imageWithCGImageOptions(CGImageRef image, NSDictionary<java.lang.String,?> options)
-
imageWithCVImageBuffer
public static CIImage imageWithCVImageBuffer(CVBufferRef imageBuffer)
Creates a new image whose data is from the contents of a CVImageBuffer.
-
imageWithCVImageBufferOptions
public static CIImage imageWithCVImageBufferOptions(CVBufferRef imageBuffer, NSDictionary<java.lang.String,?> options)
-
imageWithCVPixelBuffer
public static CIImage imageWithCVPixelBuffer(CVBufferRef pixelBuffer)
Creates a new image whose data is from the contents of a CVPixelBufferRef.
-
imageWithCVPixelBufferOptions
public static CIImage imageWithCVPixelBufferOptions(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options)
-
imageWithColor
public static CIImage imageWithColor(CIColor color)
Return or initialize a new image with an infinite amount of the color 'color'.
-
imageWithContentsOfURLOptions
public static CIImage imageWithContentsOfURLOptions(NSURL url, NSDictionary<java.lang.String,?> options)
-
imageWithDataOptions
public static CIImage imageWithDataOptions(NSData data, NSDictionary<java.lang.String,?> options)
-
imageWithImageProviderSize_FormatColorSpaceOptions
public static CIImage imageWithImageProviderSize_FormatColorSpaceOptions(java.lang.Object p, long width, long height, int f, CGColorSpaceRef cs, NSDictionary<java.lang.String,?> options)
Create a new CIImage populated when rendered with data provided by 'p'. The provider object 'p' is retained until the image is deallocated. The 'options' dictionary supports kCIImageProviderTileSize as well as other options defined in CIImage.h
-
imageWithMTLTextureOptions
public static CIImage imageWithMTLTextureOptions(MTLTexture texture, NSDictionary<java.lang.String,?> options)
Creates a new image referencing the contents of the Metal texture object. The texture type must be MTLTextureType2D and the texture format must be unsigned normalized or floating-point. When rendering a CIImage referencing this Metal texture, there should not be any uncommitted Metal comand buffers writing to the texture.
-
imageWithTextureSizeFlippedColorSpace
public static CIImage imageWithTextureSizeFlippedColorSpace(int name, CGSize size, boolean flipped, CGColorSpaceRef colorSpace)
Creates a new image referencing the contents of the GL texture object with identifier 'name'. The texture should have dimensions as defined by 'size'. If 'flipped' is true, then the contents of the texture are flipped vertically when referenced. 'colorSpace' defines the color space that the image is defined in, if nil, the texture is not color matched.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
CGImage
public CGImageRef CGImage()
Returns a CGImageRef if the CIImage was created with [CIImage imageWithCGImage] or [CIImage imageWithContentsOfURL] and no options. Otherwise this property will be nil and calling [CIContext createCGImage:fromRect:] is recommended.
-
autoAdjustmentFilters
public NSArray<? extends CIFilter> autoAdjustmentFilters()
Return an array of filters to apply to an image to improve its skin tones, saturation, contrast, shadows and repair red-eyes or LED-eyes. The options dictionary can contain a CIDetectorImageOrientation key value. The value for this key is an integer NSNumber from 1..8 such as that found in kCGImagePropertyOrientation. If present, the adjustment will be done based on that orientation but any coordinates in the returned filters will still be based on those of the sender image.
-
autoAdjustmentFiltersWithOptions
public NSArray<? extends CIFilter> autoAdjustmentFiltersWithOptions(NSDictionary<java.lang.String,?> options)
-
colorSpace
public CGColorSpaceRef colorSpace()
Returns if possible the color space of the image it was defined in. This method will return nil, if the color space cannot be determined.
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
extent
public CGRect extent()
Return a rect the defines the bounds of non-(0,0,0,0) pixels
-
imageByApplyingFilterWithInputParameters
public CIImage imageByApplyingFilterWithInputParameters(java.lang.String filterName, NSDictionary<java.lang.String,?> params)
A convenience method for applying a filter to an image. The method returns outputImage of the filter after setting the filter's inputImage to the method receiver and other parameters from the key/value pairs of 'params'.
-
imageByApplyingGaussianBlurWithSigma
public CIImage imageByApplyingGaussianBlurWithSigma(double sigma)
Return a new image by applying a gaussian blur to the receiver.
-
imageByApplyingOrientation
public CIImage imageByApplyingOrientation(int orientation)
Returns a new image representing the original image with a transform applied to it based on an orientation value. CGImagePropertyOrientation enum values from 1 to 8 as defined in the TIFF spec are supported. Returns original image if the image is of infinite extent.
-
imageByApplyingTransform
public CIImage imageByApplyingTransform(CGAffineTransform matrix)
Returns a new image representing the original image with the transform 'matrix' appended to it.
-
imageByClampingToExtent
public CIImage imageByClampingToExtent()
Return a new infinite image by replicating the edge pixels of the receiver image.
-
imageByClampingToRect
public CIImage imageByClampingToRect(CGRect rect)
Return a new infinite image by replicating the edge pixels of a rectangle. This is equivalent to the CICrop filter.
-
imageByColorMatchingColorSpaceToWorkingSpace
public CIImage imageByColorMatchingColorSpaceToWorkingSpace(CGColorSpaceRef colorSpace)
Return a new image by color matching from the colorSpace to the context's working space. This method will return nil if the CGColorSpace is not kCGColorSpaceModelRGB.
-
imageByColorMatchingWorkingSpaceToColorSpace
public CIImage imageByColorMatchingWorkingSpaceToColorSpace(CGColorSpaceRef colorSpace)
Return a new image by color matching from the context's working space to the colorSpace. This method will return nil if the CGColorSpace is not kCGColorSpaceModelRGB.
-
imageByCompositingOverImage
public CIImage imageByCompositingOverImage(CIImage dest)
Return a new image formed by compositing the receiver image over 'dest'. This is equivalent to the CISourceOverCompositing filter.
-
imageByCroppingToRect
public CIImage imageByCroppingToRect(CGRect rect)
Return a new image cropped to a rectangle.
-
imageByPremultiplyingAlpha
public CIImage imageByPremultiplyingAlpha()
Return a new image by multiplying the receiver's RGB values by its alpha.
-
imageBySettingAlphaOneInExtent
public CIImage imageBySettingAlphaOneInExtent(CGRect extent)
Return a new image with alpha set to 1 within the rectangle and 0 outside.
-
imageBySettingProperties
public CIImage imageBySettingProperties(NSDictionary<?,?> properties)
Return a new image by changing the recevier's properties.
-
imageByUnpremultiplyingAlpha
public CIImage imageByUnpremultiplyingAlpha()
Return a new image by dividing the receiver's RGB values by its alpha.
-
imageTransformForOrientation
public CGAffineTransform imageTransformForOrientation(int orientation)
Returns a CGAffineTransform for an orientation value that can be applied to an image. CGImagePropertyOrientation enum values from 1 to 8 as defined in the TIFF spec are supported. Returns CGAffineTransformIdentity if the image is of infinite extent.
-
initWithBitmapDataBytesPerRowSizeFormatColorSpace
public CIImage initWithBitmapDataBytesPerRowSizeFormatColorSpace(NSData data, long bytesPerRow, CGSize size, int format, CGColorSpaceRef colorSpace)
-
initWithCGImage
public CIImage initWithCGImage(CGImageRef image)
Initializers.
-
initWithCGImageOptions
public CIImage initWithCGImageOptions(CGImageRef image, NSDictionary<java.lang.String,?> options)
-
initWithCVImageBuffer
public CIImage initWithCVImageBuffer(CVBufferRef imageBuffer)
-
initWithCVImageBufferOptions
public CIImage initWithCVImageBufferOptions(CVBufferRef imageBuffer, NSDictionary<java.lang.String,?> options)
-
initWithCVPixelBuffer
public CIImage initWithCVPixelBuffer(CVBufferRef pixelBuffer)
-
initWithCVPixelBufferOptions
public CIImage initWithCVPixelBufferOptions(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options)
-
initWithCoder
public CIImage initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithContentsOfURLOptions
public CIImage initWithContentsOfURLOptions(NSURL url, NSDictionary<java.lang.String,?> options)
-
initWithDataOptions
public CIImage initWithDataOptions(NSData data, NSDictionary<java.lang.String,?> options)
-
initWithImageOptions
public CIImage initWithImageOptions(UIImage image, NSDictionary<java.lang.String,?> options)
-
initWithImageProviderSize_FormatColorSpaceOptions
public CIImage initWithImageProviderSize_FormatColorSpaceOptions(java.lang.Object p, long width, long height, int f, CGColorSpaceRef cs, NSDictionary<java.lang.String,?> options)
-
initWithMTLTextureOptions
public CIImage initWithMTLTextureOptions(MTLTexture texture, NSDictionary<java.lang.String,?> options)
initWithMTLTexture will return nil if textureType is not MTLTextureType2D.
-
initWithTextureSizeFlippedColorSpace
public CIImage initWithTextureSizeFlippedColorSpace(int name, CGSize size, boolean flipped, CGColorSpaceRef colorSpace)
-
pixelBuffer
public CVBufferRef pixelBuffer()
Returns a CVPixelBufferRef if the CIImage was created with [CIImage imageWithCVPixelBuffer] and no options. Otherwise this property will be nil and calling [CIContext render:toCVPixelBuffer:] is recommended. Modifying the contents of this pixelBuffer will cause the CIImage to render with undefined results.
-
properties
public NSDictionary<java.lang.String,?> properties()
Returns the metadata properties of an image. If the image is the output of one or more CIFilters, then the metadata of the root inputImage will be returned. See also kCIImageProperties.
-
regionOfInterestForImageInRect
public CGRect regionOfInterestForImageInRect(CIImage image, CGRect rect)
Returns the rectangle of 'image' that is required to render the rectangle 'rect' of the receiver. This may return a null rect.
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
url
public NSURL url()
Returns the URL of the image when the image was created using the imageWithContentsOfURL APIs. This method will return nil, if the URL cannot be determined.
-
depthData
public AVDepthData depthData()
Returns a AVDepthData if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and. one the options kCIImageAuxiliaryDepth or kCIImageAuxiliaryDisparity.
-
imageByApplyingCGOrientation
public CIImage imageByApplyingCGOrientation(int orientation)
Returns a new image representing the original image transformeded for the given CGImagePropertyOrientation
-
imageByApplyingFilter
public CIImage imageByApplyingFilter(java.lang.String filterName)
A convenience method for applying a filter to an image. The method returns outputImage of the filter after setting the filter's inputImage to the method receiver and any other parameters from the filter's defaults.
-
imageBySamplingLinear
public CIImage imageBySamplingLinear()
Returns a new image by changing the receiver's sample mode to bilinear interpolation.
-
imageBySamplingNearest
public CIImage imageBySamplingNearest()
Returns a new image by changing the receiver's sample mode to nearest neighbor.
-
imageTransformForCGOrientation
public CGAffineTransform imageTransformForCGOrientation(int orientation)
Returns a CGAffineTransform for the CGImagePropertyOrientation value that can be applied to an image.
-
imageWithIOSurface
public static CIImage imageWithIOSurface(IOSurfaceRef surface)
Creates a new image from the contents of an IOSurface.
-
imageWithIOSurfaceOptions
public static CIImage imageWithIOSurfaceOptions(IOSurfaceRef surface, NSDictionary<java.lang.String,?> options)
-
initWithIOSurface
public CIImage initWithIOSurface(IOSurfaceRef surface)
-
initWithIOSurfaceOptions
public CIImage initWithIOSurfaceOptions(IOSurfaceRef surface, NSDictionary<java.lang.String,?> options)
-
blackImage
public static CIImage blackImage()
Convenience constant color CIImages in the sRGB colorspace.
-
blueImage
public static CIImage blueImage()
-
clearImage
public static CIImage clearImage()
-
cyanImage
public static CIImage cyanImage()
-
grayImage
public static CIImage grayImage()
-
greenImage
public static CIImage greenImage()
-
imageByApplyingTransformHighQualityDownsample
public CIImage imageByApplyingTransformHighQualityDownsample(CGAffineTransform matrix, boolean highQualityDownsample)
specifying true or false here will override the context's kCIContextHighQualityDownsample setting.
-
imageByInsertingIntermediate
public CIImage imageByInsertingIntermediate()
Returns a new image that inserts a intermediate that is cacheable according to the CIContext's kCIContextCacheIntermediates option.
-
imageByInsertingIntermediate
public CIImage imageByInsertingIntermediate(boolean cache)
Returns a new image that inserts a intermediate that is cacheable independent of the CIContext's kCIContextCacheIntermediates option.
-
imageWithCGImageSourceIndexOptions
public static CIImage imageWithCGImageSourceIndexOptions(CGImageSourceRef source, long index, NSDictionary<java.lang.String,?> dict)
Creates a new image from the contents of 'source'.
-
imageWithDepthData
public static CIImage imageWithDepthData(AVDepthData data)
-
imageWithDepthDataOptions
public static CIImage imageWithDepthDataOptions(AVDepthData data, NSDictionary<java.lang.String,?> options)
-
imageWithPortaitEffectsMatte
public static CIImage imageWithPortaitEffectsMatte(AVPortraitEffectsMatte matte)
-
imageWithPortaitEffectsMatteOptions
public static CIImage imageWithPortaitEffectsMatteOptions(AVPortraitEffectsMatte matte, NSDictionary<java.lang.String,?> options)
-
imageWithSemanticSegmentationMatte
public static CIImage imageWithSemanticSegmentationMatte(AVSemanticSegmentationMatte matte)
-
imageWithSemanticSegmentationMatteOptions
public static CIImage imageWithSemanticSegmentationMatteOptions(AVSemanticSegmentationMatte matte, NSDictionary<java.lang.String,?> options)
-
initWithCGImageSourceIndexOptions
public CIImage initWithCGImageSourceIndexOptions(CGImageSourceRef source, long index, NSDictionary<java.lang.String,?> dict)
-
initWithDepthData
public CIImage initWithDepthData(AVDepthData data)
-
initWithDepthDataOptions
public CIImage initWithDepthDataOptions(AVDepthData data, NSDictionary<java.lang.String,?> options)
-
initWithPortaitEffectsMatte
public CIImage initWithPortaitEffectsMatte(AVPortraitEffectsMatte matte)
-
initWithPortaitEffectsMatteOptions
public CIImage initWithPortaitEffectsMatteOptions(AVPortraitEffectsMatte matte, NSDictionary<java.lang.String,?> options)
-
initWithSemanticSegmentationMatte
public CIImage initWithSemanticSegmentationMatte(AVSemanticSegmentationMatte matte)
-
initWithSemanticSegmentationMatteOptions
public CIImage initWithSemanticSegmentationMatteOptions(AVSemanticSegmentationMatte matte, NSDictionary<java.lang.String,?> options)
-
magentaImage
public static CIImage magentaImage()
-
portraitEffectsMatte
public AVPortraitEffectsMatte portraitEffectsMatte()
Returns a AVPortraitEffectsMatte if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and. one the options kCIImageAuxiliaryPortraitEffectsMatte.
-
redImage
public static CIImage redImage()
-
semanticSegmentationMatte
public AVSemanticSegmentationMatte semanticSegmentationMatte()
Returns a AVSemanticSegmentationMatte if the CIImage was created with [CIImage imageWithData] or [CIImage imageWithContentsOfURL] and. one the options like kCIImageAuxiliarySemanticSegmentationSkinMatte.
-
whiteImage
public static CIImage whiteImage()
-
yellowImage
public static CIImage yellowImage()
-
-