CIImage.GetAutoAdjustmentFilters 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.
Overloads
GetAutoAdjustmentFilters() |
Gets the filters that are required to perform some common image correction steps to an image. |
GetAutoAdjustmentFilters(CIAutoAdjustmentFilterOptions) |
Gets the filters requires to perform some common image correction steps to an image. |
GetAutoAdjustmentFilters()
Gets the filters that are required to perform some common image correction steps to an image.
public CoreImage.CIFilter[] GetAutoAdjustmentFilters ();
member this.GetAutoAdjustmentFilters : unit -> CoreImage.CIFilter[]
Returns
Returns an array of configured filters to apply to the image to automatically adjust it.
Remarks
In general, you should try to use the GetAutoAdjustmentFilters(CIAutoAdjustmentFilterOptions) as that method allows you to customize which kind of filters you want to get.
This method is used to get a list of pre-configured filters to remedy various common problems found in photos.
void PrepareFixes (CIImage img)
{
foreach (var filter in img.GetAutoAdjustmentFilters ()) {
filter.Image = img;
img = filter.OutputImage;
}
}
Applies to
GetAutoAdjustmentFilters(CIAutoAdjustmentFilterOptions)
Gets the filters requires to perform some common image correction steps to an image.
public CoreImage.CIFilter[] GetAutoAdjustmentFilters (CoreImage.CIAutoAdjustmentFilterOptions options);
member this.GetAutoAdjustmentFilters : CoreImage.CIAutoAdjustmentFilterOptions -> CoreImage.CIFilter[]
Parameters
- options
- CIAutoAdjustmentFilterOptions
Options to initialize the image with.
Returns
Returns an array of configured filters to apply to the image to automatically adjust it.
Remarks
This method is used to get a list of pre-configured filters to remedy various common problems found in photos.
void PrepareFixes (CIImage img)
{
var opt = new CIAutoAdjustmentFilterOptions () {
RedEye = true,
AutoAdjustCrop = true
};
CIImage img = null;
foreach (var filter in img.GetAutoAdjustmentFilters (opt)) {
filter.Image = img;
img = filter.OutputImage;
}
}