Class CIBlendKernel

  • All Implemented Interfaces:
    NSObject

    public class CIBlendKernel
    extends CIColorKernel
    CIBlendKernel is a special type of color kernel that blends two images. Blend kernel functions are declared akin to this example: kernel vec4 myBlendKernel (__sample fore, __sample back) A blend kernel function must have exactly two arguments of type __sample. The first argument represents the value of the source pixel and the second represents that of the old destination. The vec4 returned by the kernel will be the new destination color. The kernel should not call sample(), samplerCoord(), or samplerTransform(). The function must return a vec4 pixel color.
    • Constructor Detail

      • CIBlendKernel

        protected CIBlendKernel​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CIBlendKernel allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • applyWithForegroundBackground

        @Nullable
        public @Nullable CIImage applyWithForegroundBackground​(@NotNull
                                                               @NotNull CIImage foreground,
                                                               @NotNull
                                                               @NotNull CIImage background)
        Apply the receiver CIBlendKernel to produce a new CIImage object by blending a foreground and background images. The 'extent' of the result image will be determined by the reciver and the extent of the forground and background images. For most of the builtin blend kernels (as well as custom blend kernels) the result image extent will be the union of the forground and background image extents.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clear

        @NotNull
        public static @NotNull CIBlendKernel clear()
        Porter Duff http://dl.acm.org/citation.cfm?id=808606
      • colorBurn

        @NotNull
        public static @NotNull CIBlendKernel colorBurn()
      • colorDodge

        @NotNull
        public static @NotNull CIBlendKernel colorDodge()
      • componentAdd

        @NotNull
        public static @NotNull CIBlendKernel componentAdd()
        Component-wise operators
      • componentMax

        @NotNull
        public static @NotNull CIBlendKernel componentMax()
      • componentMin

        @NotNull
        public static @NotNull CIBlendKernel componentMin()
      • componentMultiply

        @NotNull
        public static @NotNull CIBlendKernel componentMultiply()
      • darken

        @NotNull
        public static @NotNull CIBlendKernel darken()
      • darkerColor

        @NotNull
        public static @NotNull CIBlendKernel darkerColor()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • destination

        @NotNull
        public static @NotNull CIBlendKernel destination()
      • destinationAtop

        @NotNull
        public static @NotNull CIBlendKernel destinationAtop()
      • destinationIn

        @NotNull
        public static @NotNull CIBlendKernel destinationIn()
      • destinationOut

        @NotNull
        public static @NotNull CIBlendKernel destinationOut()
      • destinationOver

        @NotNull
        public static @NotNull CIBlendKernel destinationOver()
      • difference

        @NotNull
        public static @NotNull CIBlendKernel difference()
      • divide

        @NotNull
        public static @NotNull CIBlendKernel divide()
      • exclusion

        @NotNull
        public static @NotNull CIBlendKernel exclusion()
      • exclusiveOr

        @NotNull
        public static @NotNull CIBlendKernel exclusiveOr()
      • hardLight

        @NotNull
        public static @NotNull CIBlendKernel hardLight()
      • hardMix

        @NotNull
        public static @NotNull CIBlendKernel hardMix()
      • hash_static

        public static long hash_static()
      • hue

        @NotNull
        public static @NotNull CIBlendKernel hue()
        Standard nonseparable blend modes
      • 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)
      • kernelWithFunctionNameFromMetalLibraryDataError

        public static CIBlendKernel kernelWithFunctionNameFromMetalLibraryDataError​(@NotNull
                                                                                    @NotNull java.lang.String name,
                                                                                    @NotNull
                                                                                    @NotNull NSData data,
                                                                                    @Nullable
                                                                                    @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError

        public static CIBlendKernel kernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError​(@NotNull
                                                                                                     @NotNull java.lang.String name,
                                                                                                     @NotNull
                                                                                                     @NotNull NSData data,
                                                                                                     int format,
                                                                                                     @Nullable
                                                                                                     @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • kernelWithString

        @Deprecated
        public static CIBlendKernel kernelWithString​(@NotNull
                                                     @NotNull java.lang.String string)
        Deprecated.
        The string argument should contain a program with one custom blend kernel. API-Since: 8.0 Deprecated-Since: 12.0 Deprecated-Message: Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)
      • kernelsWithString

        @Nullable
        @Deprecated
        public static @Nullable NSArray<? extends CIKernel> kernelsWithString​(@NotNull
                                                                              @NotNull java.lang.String string)
        Deprecated.
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • lighten

        @NotNull
        public static @NotNull CIBlendKernel lighten()
      • lighterColor

        @NotNull
        public static @NotNull CIBlendKernel lighterColor()
      • linearBurn

        @NotNull
        public static @NotNull CIBlendKernel linearBurn()
      • linearDodge

        @NotNull
        public static @NotNull CIBlendKernel linearDodge()
      • linearLight

        @NotNull
        public static @NotNull CIBlendKernel linearLight()
      • luminosity

        @NotNull
        public static @NotNull CIBlendKernel luminosity()
      • multiply

        @NotNull
        public static @NotNull CIBlendKernel multiply()
        Standard separable blend modes
      • overlay

        @NotNull
        public static @NotNull CIBlendKernel overlay()
      • pinLight

        @NotNull
        public static @NotNull CIBlendKernel pinLight()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • saturation

        @NotNull
        public static @NotNull CIBlendKernel saturation()
      • screen

        @NotNull
        public static @NotNull CIBlendKernel screen()
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • softLight

        @NotNull
        public static @NotNull CIBlendKernel softLight()
      • source

        @NotNull
        public static @NotNull CIBlendKernel source()
      • sourceAtop

        @NotNull
        public static @NotNull CIBlendKernel sourceAtop()
      • sourceIn

        @NotNull
        public static @NotNull CIBlendKernel sourceIn()
      • sourceOut

        @NotNull
        public static @NotNull CIBlendKernel sourceOut()
      • sourceOver

        @NotNull
        public static @NotNull CIBlendKernel sourceOver()
      • subtract

        @NotNull
        public static @NotNull CIBlendKernel subtract()
        Additional blend modes
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • vividLight

        @NotNull
        public static @NotNull CIBlendKernel vividLight()
      • applyWithForegroundBackgroundColorSpace

        @Nullable
        public @Nullable CIImage applyWithForegroundBackgroundColorSpace​(@NotNull
                                                                         @NotNull CIImage foreground,
                                                                         @NotNull
                                                                         @NotNull CIImage background,
                                                                         @NotNull
                                                                         @NotNull CGColorSpaceRef colorSpace)
        Apply the receiver CIBlendKernel to produce a new CIImage object by blending a foreground and background images in the specifid colorspace. The 'extent' of the result image will be determined by the reciver and the extent of the forground and background images. For most of the builtin blend kernels (as well as custom blend kernels) the result image extent will be the union of the forground and background image extents. API-Since: 13.0
      • kernelNamesFromMetalLibraryData

        @NotNull
        public static @NotNull NSArray<java.lang.String> kernelNamesFromMetalLibraryData​(@NotNull
                                                                                         @NotNull NSData data)
      • kernelsWithMetalStringError

        @Nullable
        public static @Nullable NSArray<? extends CIKernel> kernelsWithMetalStringError​(@NotNull
                                                                                        @NotNull java.lang.String source,
                                                                                        @Nullable
                                                                                        @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.