CIFilter.FromName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a CIFilter for the specific effect.
[Foundation.Export("filterWithName:")]
public static CoreImage.CIFilter FromName (string name);
static member FromName : string -> CoreImage.CIFilter
Parameters
- name
- String
The name of the CoreImage filter to instantiate.
Returns
- Attributes
Remarks
On iOS 5.0, the following are the built-in filters: Blur, ColorEffect, CIAdditionCompositing, CIAffineTransform, CICheckerboardGenerator, CIColorBlendMode, CIColorBurnBlendMode, CIColorControls, CIColorCube, CIColorDodgeBlendMode, CIColorInvert, CIColorMatrix, CIColorMonochrome, CIConstantColorGenerator, CICrop, CIDarkenBlendMode, CIDifferenceBlendMode, CIExclusionBlendMode, CIExposureAdjust, CIFalseColor, CIGammaAdjust, CIGaussianGradient, CIHardLightBlendMode, CIHighlightShadowAdjust, CIHueAdjust, CIHueBlendMode, CILightenBlendMode, CILinearGradient, CILuminosityBlendMode, CIMaximumCompositing, CIMinimumCompositing, CIMultiplyBlendMode, CIMultiplyCompositing, CIOverlayBlendMode, CIRadialGradient, CISaturationBlendMode, CIScreenBlendMode, CISepiaTone, CISoftLightBlendMode, CISourceAtopCompositing, CISourceInCompositing, CISourceOutCompositing, CISourceOverCompositing, CIStraightenFilter, CIStripesGenerator, CITemperatureAndTint, CIToneCurve, CIVibrance, CIVignette and CIWhitePointAdjust.
To create a filter of the specified type, instantiate an instance of one of the above types, assign values to their properties and extract the result by using the OutputImage property.
var sepiaFilter = new CISepiaTone () {
Image = mySourceImage,
Intensity = 0.8f
};