美文网首页
GPUImage翻译四:内置滤镜(混合模式Blending)

GPUImage翻译四:内置滤镜(混合模式Blending)

作者: 开发者老岳 | 来源:发表于2018-08-15 18:04 被阅读126次

混合模式(Blending modes)

  • GPUImageChromaKeyBlendFilter: Selectively replaces a color in the first image with the second image

    • thresholdSensitivity: How close a color match needs to exist to the target color to be replaced (default of 0.4)
    • smoothing: How smoothly to blend for the color match (default of 0.1)
  • GPUImageDissolveBlendFilter: Applies a dissolve blend of two images

    • mix: The degree with which the second image overrides the first (0.0 - 1.0, with 0.5 as the default)
  • GPUImageMultiplyBlendFilter: Applies a multiply blend of two images

  • GPUImageAddBlendFilter: Applies an additive blend of two images

  • GPUImageSubtractBlendFilter: Applies a subtractive blend of two images

  • GPUImageDivideBlendFilter: Applies a division blend of two images

  • GPUImageOverlayBlendFilter: Applies an overlay blend of two images

  • GPUImageDarkenBlendFilter: Blends two images by taking the minimum value of each color component between the images

  • GPUImageLightenBlendFilter: Blends two images by taking the maximum value of each color component between the images

  • GPUImageColorBurnBlendFilter: Applies a color burn blend of two images

  • GPUImageColorDodgeBlendFilter: Applies a color dodge blend of two images

  • GPUImageScreenBlendFilter: Applies a screen blend of two images

  • GPUImageExclusionBlendFilter: Applies an exclusion blend of two images

  • GPUImageDifferenceBlendFilter: Applies a difference blend of two images

  • GPUImageHardLightBlendFilter: Applies a hard light blend of two images

  • GPUImageSoftLightBlendFilter: Applies a soft light blend of two images

  • GPUImageAlphaBlendFilter: Blends the second image over the first, based on the second's alpha channel

    • mix: The degree with which the second image overrides the first (0.0 - 1.0, with 1.0 as the default)
  • GPUImageSourceOverBlendFilter: Applies a source over blend of two images

  • GPUImageColorBurnBlendFilter: Applies a color burn blend of two images

  • GPUImageColorDodgeBlendFilter: Applies a color dodge blend of two images

  • GPUImageNormalBlendFilter: Applies a normal blend of two images

  • GPUImageColorBlendFilter: Applies a color blend of two images

  • GPUImageHueBlendFilter: Applies a hue blend of two images

  • GPUImageSaturationBlendFilter: Applies a saturation blend of two images

  • GPUImageLuminosityBlendFilter: Applies a luminosity blend of two images

  • GPUImageLinearBurnBlendFilter: Applies a linear burn blend of two images

  • GPUImagePoissonBlendFilter: Applies a Poisson blend of two images

    • mix: Mix ranges from 0.0 (only image 1) to 1.0 (only image 2 gradients), with 1.0 as the normal level
    • numIterations: The number of times to propagate the gradients. Crank this up to 100 or even 1000 if you want to get anywhere near convergence. Yes, this will be slow.
  • GPUImageMaskFilter: Masks one image using another

相关文章

网友评论

      本文标题:GPUImage翻译四:内置滤镜(混合模式Blending)

      本文链接:https://www.haomeiwen.com/subject/quowbftx.html