xamarin-macios/src/coreimage.cs

4475 строки
111 KiB
C#

//
// coreimage.cs: Definitions for CoreImage
//
// Copyright 2010, Novell, Inc.
// Copyright 2011-2013 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using XamCore.Foundation;
using XamCore.ObjCRuntime;
using XamCore.CoreGraphics;
using XamCore.CoreImage;
using XamCore.CoreVideo;
#if !MONOMAC || XAMCORE_2_0
using XamCore.Metal;
#endif
#if !MONOMAC
using XamCore.OpenGLES;
using XamCore.UIKit;
#else
using XamCore.AppKit;
using XamCore.ImageKit;
#endif
namespace XamCore.CoreImage {
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIColor : NSSecureCoding, NSCopying {
[Static]
[Export ("colorWithCGColor:")]
CIColor FromCGColor (CGColor c);
[Static]
[Export ("colorWithRed:green:blue:alpha:")]
CIColor FromRgba (nfloat red, nfloat green, nfloat blue, nfloat alpha);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("colorWithRed:green:blue:alpha:colorSpace:")]
[return: NullAllowed]
CIColor FromRgba (nfloat red, nfloat green, nfloat blue, nfloat alpha, CGColorSpace colorSpace);
[Static]
[Export ("colorWithRed:green:blue:")]
CIColor FromRgb (nfloat red, nfloat green, nfloat blue);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("colorWithRed:green:blue:colorSpace:")]
[return: NullAllowed]
CIColor FromRgb (nfloat red, nfloat green, nfloat blue, CGColorSpace colorSpace);
[Static]
[Export ("colorWithString:")]
CIColor FromString (string representation);
[DesignatedInitializer]
[Export ("initWithCGColor:")]
IntPtr Constructor (CGColor c);
[iOS (9,0)][Mac (10,11)]
[Export ("initWithRed:green:blue:")]
IntPtr Constructor (nfloat red, nfloat green, nfloat blue);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("initWithRed:green:blue:colorSpace:")]
IntPtr Constructor (nfloat red, nfloat green, nfloat blue, CGColorSpace colorSpace);
[iOS (9,0)][Mac (10,11)]
[Export ("initWithRed:green:blue:alpha:")]
IntPtr Constructor (nfloat red, nfloat green, nfloat blue, nfloat alpha);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("initWithRed:green:blue:alpha:colorSpace:")]
IntPtr Constructor (nfloat red, nfloat green, nfloat blue, nfloat alpha, CGColorSpace colorSpace);
[Export ("numberOfComponents")]
nint NumberOfComponents { get; }
[Internal, Export ("components")]
IntPtr GetComponents ();
[Export ("alpha")]
nfloat Alpha { get; }
[Export ("colorSpace")]
CGColorSpace ColorSpace { get; }
[Export ("red")]
nfloat Red { get; }
[Export ("green")]
nfloat Green { get; }
[Export ("blue")]
nfloat Blue { get; }
// the above are the component of a CIColor instance
// while the one below are CIColor convenience helpers
// conflicting names means we have to keep the *Color suffix on them
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("blackColor")]
CIColor BlackColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("whiteColor")]
CIColor WhiteColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("grayColor")]
CIColor GrayColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("redColor")]
CIColor RedColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("greenColor")]
CIColor GreenColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("blueColor")]
CIColor BlueColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("cyanColor")]
CIColor CyanColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("magentaColor")]
CIColor MagentaColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("yellowColor")]
CIColor YellowColor { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("clearColor")]
CIColor ClearColor { get; }
[Export ("stringRepresentation")]
string StringRepresentation ();
#if !MONOMAC
[Export ("initWithColor:")]
IntPtr Constructor (UIColor color);
#else
[Export ("initWithColor:")]
IntPtr Constructor (NSColor color);
#endif
}
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIContext {
// When we bind OpenGL add these:
//[Export ("contextWithCGLContext:pixelFormat:colorSpace:options:")]
//CIContext ContextWithCGLContextpixelFormatcolorSpaceoptions (CGLContextObj ctx, CGLPixelFormatObj pf, CGColorSpaceRef cs, NSDictionary dict, );
#if !MONOMAC || XAMCORE_2_0
[iOS (9,0)][Mac (10,11)]
[Static]
[Export ("contextWithMTLDevice:")]
CIContext FromMetalDevice (IMTLDevice device);
#if XAMCORE_2_0
[iOS (9,0)][Mac (10,11)]
[Internal] // This overload is needed for our strong dictionary support (but only for Unified, since for Classic the generic version is transformed to this signature)
[Static]
[Export ("contextWithMTLDevice:options:")]
CIContext FromMetalDevice (IMTLDevice device, [NullAllowed] NSDictionary options);
#endif
[iOS (9,0)][Mac (10,11)]
[Static]
[Export ("contextWithMTLDevice:options:")]
CIContext FromMetalDevice (IMTLDevice device, [NullAllowed] NSDictionary<NSString, NSObject> options);
#endif
[iOS (9,0)]
[Internal, Static]
[Export ("contextWithCGContext:options:")]
CIContext FromContext (CGContext ctx, [NullAllowed] NSDictionary options);
[Static, Internal]
[Export ("contextWithOptions:")]
CIContext FromOptions ([NullAllowed] NSDictionary dictionary);
[iOS (9,0)] // documented as earlier but missing
[Internal]
[Export ("initWithOptions:")]
IntPtr Constructor ([NullAllowed] NSDictionary options);
#if !MONOMAC
[Static]
[Wrap ("FromOptions ((NSDictionary) null)")]
CIContext Create ();
[Static]
[Export ("contextWithEAGLContext:")]
CIContext FromContext (EAGLContext eaglContext);
[Static]
[Export ("contextWithEAGLContext:options:")]
CIContext FromContext (EAGLContext eaglContext, [NullAllowed] NSDictionary dictionary);
#endif
[Mac (10,11)]
[Export ("render:toCVPixelBuffer:")]
void Render (CIImage image, CVPixelBuffer buffer);
[Mac (10,11)]
[Export ("render:toCVPixelBuffer:bounds:colorSpace:")]
// null is not documented for CGColorSpace but it makes sense with the other overload not having this parameter (unit tested)
void Render (CIImage image, CVPixelBuffer buffer, CGRect rectangle, [NullAllowed] CGColorSpace cs);
#if !MONOMAC
[Export ("inputImageMaximumSize")]
CGSize InputImageMaximumSize { get; }
[Export ("outputImageMaximumSize")]
CGSize OutputImageMaximumSize { get; }
#endif
#if !MONOMAC || XAMCORE_2_0
[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
[Export ("render:toMTLTexture:commandBuffer:bounds:colorSpace:")]
void Render (CIImage image, IMTLTexture texture, [NullAllowed] IMTLCommandBuffer commandBuffer, CGRect bounds, [NullAllowed] CGColorSpace colorSpace);
#endif
[Availability (Introduced = Platform.iOS_5_0 | Platform.Mac_10_4, Deprecated = Platform.iOS_6_0 | Platform.Mac_10_8, Message = "Use DrawImage (image, CGRect, CGRect) instead")]
[Export ("drawImage:atPoint:fromRect:")]
void DrawImage (CIImage image, CGPoint atPoint, CGRect fromRect);
[Export ("drawImage:inRect:fromRect:")]
void DrawImage (CIImage image, CGRect inRectangle, CGRect fromRectangle);
[Export ("createCGImage:fromRect:")]
[return: Release ()]
CGImage CreateCGImage (CIImage image, CGRect fromRectangle);
[Export ("createCGImage:fromRect:format:colorSpace:")]
[return: Release ()]
CGImage CreateCGImage (CIImage image, CGRect fromRect, int /* CIFormat = int */ ciImageFormat, [NullAllowed] CGColorSpace colorSpace);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("createCGImage:fromRect:format:colorSpace:deferred:")]
[return: NullAllowed]
CGImage CreateCGImage (CIImage image, CGRect fromRect, CIFormat format, [NullAllowed] CGColorSpace colorSpace, bool deferred);
#if MONOMAC
[Internal, Export ("createCGLayerWithSize:info:")]
CGLayer CreateCGLayer (CGSize size, [NullAllowed] NSDictionary info);
#endif
[Export ("render:toBitmap:rowBytes:bounds:format:colorSpace:")]
void RenderToBitmap (CIImage image, IntPtr bitmapPtr, nint bytesPerRow, CGRect bounds, int /* CIFormat = int */ bitmapFormat, [NullAllowed] CGColorSpace colorSpace);
//[Export ("render:toIOSurface:bounds:colorSpace:")]
//void RendertoIOSurfaceboundscolorSpace (CIImage im, IOSurfaceRef surface, CGRect r, CGColorSpaceRef cs, );
#if MONOMAC
[Export ("reclaimResources")]
void ReclaimResources ();
#endif
[iOS (10,0)]
[TV (10,0)]
[Export ("clearCaches")]
void ClearCaches ();
[Internal, Field ("kCIContextOutputColorSpace", "+CoreImage")]
NSString OutputColorSpace { get; }
[Internal, Field ("kCIContextWorkingColorSpace", "+CoreImage")]
NSString _WorkingColorSpace { get; }
[Internal, Field ("kCIContextUseSoftwareRenderer", "+CoreImage")]
NSString UseSoftwareRenderer { get; }
[iOS (8,0)][Mac (10,12)]
[Internal, Field ("kCIContextPriorityRequestLow", "+CoreImage")]
NSString PriorityRequestLow { get; }
[iOS (8,0)]
[Internal, Field ("kCIContextWorkingFormat", "+CoreImage")]
NSString WorkingFormatField { get; }
[iOS (9,0)][Mac (10,11)]
[Internal]
[Field ("kCIContextHighQualityDownsample", "+CoreImage")]
NSString HighQualityDownsample { get; }
#if MONOMAC
[Mac(10,11)]
[Export ("offlineGPUCount")]
[Static]
int OfflineGPUCount { get; }
[Mac(10,11)]
[Export ("contextForOfflineGPUAtIndex:")]
[Static]
CIContext FromOfflineGpu (int gpuIndex);
// When we bind CGLContext
//+(CIContext *)contextForOfflineGPUAtIndex:(unsigned int)index
// colorSpace:(nullable CGColorSpaceRef)colorSpace
// options:(nullable CI_DICTIONARY(NSString*,id) *)options
// sharedContext:(nullable CGLContextObj)sharedContext NS_AVAILABLE_MAC(10_10);
#endif
[iOS (9,0)][Mac (10,11)]
[Export ("workingColorSpace")]
CGColorSpace WorkingColorSpace { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("workingFormat")]
CIFormat WorkingFormat { get; }
[iOS (7,0)]
[Internal]
[Field ("kCIContextOutputPremultiplied", "+CoreImage")]
NSString OutputPremultiplied { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Internal]
[Field ("kCIContextCacheIntermediates", "+CoreImage")]
NSString CacheIntermediates { get; }
}
[Category]
[BaseType (typeof (CIContext))]
interface CIContext_ImageRepresentation {
[iOS (10,0)][Mac (10,12)]
[Export ("TIFFRepresentationOfImage:format:colorSpace:options:")]
[return: NullAllowed]
NSData GetTiffRepresentation (CIImage image, CIFormat format, CGColorSpace colorSpace, NSDictionary options);
[iOS (10,0)][Mac (10,12)]
[Export ("JPEGRepresentationOfImage:colorSpace:options:")]
[return: NullAllowed]
NSData GetJpegRepresentation (CIImage image, CGColorSpace colorSpace, NSDictionary options);
[iOS (10,0)][Mac (10,12)]
[Export ("writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:")]
bool WriteTiffRepresentation (CIImage image, NSUrl url, CIFormat format, CGColorSpace colorSpace, NSDictionary options, out NSError error);
[iOS (10,0)][Mac (10,12)]
[Export ("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:")]
bool WriteJpegRepresentation (CIImage image, NSUrl url, CGColorSpace colorSpace, NSDictionary options, [NullAllowed] out NSError error);
}
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor] // In iOS8 they expose custom filters, we expose a protected one in CIFilter.cs
interface CIFilter : NSSecureCoding, NSCopying {
[Export ("inputKeys")]
string [] InputKeys { get; }
[Export ("outputKeys")]
string [] OutputKeys { get; }
[Export ("setDefaults")]
void SetDefaults ();
[Export ("attributes")]
NSDictionary Attributes { get; }
[Export ("name")]
string Name {
get;
[iOS (10,0)][TV (10,0)]
set;
}
[Static]
[Export ("filterWithName:")]
CIFilter FromName (string name);
[iOS (8,0), Mac (10,10)]
[Static]
[Export ("filterWithName:withInputParameters:")]
CIFilter GetFilter (string name, [NullAllowed] NSDictionary inputParameters);
[Static]
[Export ("filterNamesInCategory:")]
string [] FilterNamesInCategory ([NullAllowed] string category);
[Static]
[Export ("filterNamesInCategories:"), Internal]
string [] _FilterNamesInCategories ([NullAllowed] string [] categories);
[iOS(9,0)]
[Static]
[Export ("localizedNameForFilterName:")]
string FilterLocalizedName (string filterName);
[iOS(9,0)]
[Static]
[Export ("localizedNameForCategory:")]
string CategoryLocalizedName (string category);
[iOS(9,0)]
[Static]
[Export ("localizedDescriptionForFilterName:")]
string FilterLocalizedDescription (string filterName);
[iOS(9,0)]
[Static]
[Export ("localizedReferenceDocumentationForFilterName:")]
NSUrl FilterLocalizedReferenceDocumentation (string filterName);
#if MONOMAC && !XAMCORE_4_0
[Mac(10,4)]
[Static]
[Export ("registerFilterName:constructor:classAttributes:")]
void RegisterFilterName (string name, NSObject constructorObject, NSDictionary classAttributes);
#else
[iOS(9,0)]
[Static]
[Export ("registerFilterName:constructor:classAttributes:")]
#if XAMCORE_4_0
void RegisterFilterName (string name, ICIFilterConstructor constructorObject, NSDictionary<NSString, NSObject> classAttributes);
#else
[Advice ("The constructorObject argument must implement ICIFilterConstructor")]
void RegisterFilterName (string name, NSObject constructorObject, NSDictionary<NSString, NSObject> classAttributes);
#endif
#endif
#if MONOMAC
[Export ("apply:arguments:options:")]
CIImage Apply (CIKernel k, [NullAllowed] NSArray args, [NullAllowed] NSDictionary options);
[Export ("viewForUIConfiguration:excludedKeys:")]
IKFilterUIView GetFilterUIView (NSDictionary configurationOptions, [NullAllowed] NSArray excludedKeys);
#else
// added in 10.10 but it was already accessible in a different way before (manual bindings)
[Export ("outputImage")]
CIImage OutputImage { get; }
[Since (6,0)]
[Export ("serializedXMPFromFilters:inputImageExtent:"), Static]
NSData SerializedXMP (CIFilter[] filters, CGRect extent);
[Since (6,0)]
[Export ("filterArrayFromSerializedXMP:inputImageExtent:error:"), Static]
CIFilter[] FromSerializedXMP (NSData xmpData, CGRect extent, out NSError error);
#endif
[Export ("setValue:forKey:"), Internal]
void SetValueForKey ([NullAllowed] NSObject value, NSString key);
[Export ("valueForKey:"), Internal]
NSObject ValueForKey (NSString key);
// CIRAWFilter (CIFilter)
[iOS (10,0)]
[TV (10,0)]
[Static]
[Export ("filterWithImageURL:options:")]
CIFilter CreateRawFilter (NSUrl url, NSDictionary options);
[iOS (10,0)]
[TV (10,0)]
[Static]
[Wrap ("CreateRawFilter (url, options?.Dictionary)")]
CIFilter CreateRawFilter (NSUrl url, CIRawFilterOptions options);
[iOS (10,0)]
[TV (10,0)]
[Static]
[Export ("filterWithImageData:options:")]
CIFilter CreateRawFilter (NSData data, NSDictionary options);
[iOS (10,0)]
[TV (10,0)]
[Static]
[Wrap ("CreateRawFilter (data, options?.Dictionary)")]
CIFilter CreateRawFilter (NSData data, CIRawFilterOptions options);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Export ("filterWithCVPixelBuffer:properties:options:")]
CIFilter CreateRawFilter (CVPixelBuffer pixelBuffer, NSDictionary properties, NSDictionary options);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Static]
[Wrap ("CreateRawFilter (pixelBuffer, properties, options?.Dictionary)")]
CIFilter CreateRawFilter (CVPixelBuffer pixelBuffer, NSDictionary properties, CIRawFilterOptions options);
}
[TV (10,0)]
[Static]
[Internal]
interface CIRawFilterKeys {
[iOS (10,0)]
[Field ("kCIInputAllowDraftModeKey")]
NSString AllowDraftModeKey { get; }
[iOS (10,0)]
[Field ("kCIInputDecoderVersionKey")]
NSString VersionKey { get; }
[iOS (10,0)]
[Field ("kCISupportedDecoderVersionsKey")]
NSString SupportedDecoderVersionsKey { get; }
[iOS (10,0)][Mac (10,12)]
[Field ("kCIInputBaselineExposureKey")]
NSString BaselineExposureKey { get; }
[iOS (10,0)]
[Field ("kCIInputBoostKey")]
NSString BoostKey { get; }
[iOS (10,0)]
[Field ("kCIInputBoostShadowAmountKey")]
NSString BoostShadowAmountKey { get; }
[iOS (10,0)][Mac (10,12)]
[Field ("kCIInputDisableGamutMapKey")]
NSString DisableGamutMapKey { get; }
[iOS (10,0)]
[Field ("kCIInputNeutralChromaticityXKey")]
NSString NeutralChromaticityXKey { get; }
[iOS (10,0)]
[Field ("kCIInputNeutralChromaticityYKey")]
NSString NeutralChromaticityYKey { get; }
[iOS (10,0)]
[Field ("kCIInputNeutralTemperatureKey")]
NSString NeutralTemperatureKey { get; }
[iOS (10,0)]
[Field ("kCIInputNeutralTintKey")]
NSString NeutralTintKey { get; }
[iOS (10,0)]
[Field ("kCIInputNeutralLocationKey")]
NSString NeutralLocationKey { get; }
[iOS (10,0)]
[Field ("kCIInputScaleFactorKey")]
NSString ScaleFactorKey { get; }
[iOS (10,0)]
[Field ("kCIInputIgnoreImageOrientationKey")]
NSString IgnoreImageOrientationKey { get; }
[iOS (10,0)]
[Field ("kCIInputImageOrientationKey")]
NSString ImageOrientationKey { get; }
[iOS (10,0)]
[Field ("kCIInputEnableSharpeningKey")]
NSString EnableSharpeningKey { get; }
[iOS (10,0)]
[Field ("kCIInputEnableChromaticNoiseTrackingKey")]
NSString EnableChromaticNoiseTrackingKey { get; }
[iOS (10,0)]
[Field ("kCIInputNoiseReductionAmountKey")]
NSString NoiseReductionAmountKey { get; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputEnableVendorLensCorrectionKey")]
NSString EnableVendorLensCorrectionKey { get; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputLuminanceNoiseReductionAmountKey")]
NSString LuminanceNoiseReductionAmountKey { get; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputColorNoiseReductionAmountKey")]
NSString ColorNoiseReductionAmountKey { get; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputNoiseReductionSharpnessAmountKey")]
NSString NoiseReductionSharpnessAmountKey { get; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputNoiseReductionContrastAmountKey")]
NSString NoiseReductionContrastAmountKey { get; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputNoiseReductionDetailAmountKey")]
NSString NoiseReductionDetailAmountKey { get; }
[iOS (10,0)]
[Field ("kCIInputLinearSpaceFilter")]
NSString LinearSpaceFilterKey { get; }
[iOS (10,0)]
[Field ("kCIOutputNativeSizeKey")]
NSString OutputNativeSizeKey { get; }
[iOS (10,0)]
[Field ("kCIActiveKeys")]
NSString ActiveKeysKey { get; }
}
[TV (10,0)]
[StrongDictionary ("CIRawFilterKeys")]
interface CIRawFilterOptions {
[iOS (10,0)]
bool AllowDraftMode { get; set; }
[iOS (10,0)]
string Version { get; set; }
[iOS (10,0)]
NSDictionary[] SupportedDecoderVersions { get; set; }
[iOS (10,0)][Mac (10,12)]
float BaselineExposure { get; set; }
[iOS (10,0)]
float Boost { get; set; }
[iOS (10,0)]
float BoostShadowAmount { get; set; }
[iOS (10,0)][Mac (10,12)]
bool DisableGamutMap { get; set; }
[iOS (10,0)]
float NeutralChromaticityX { get; set; }
[iOS (10,0)]
float NeutralChromaticityY { get; set; }
[iOS (10,0)]
float NeutralTemperature { get; set; }
[iOS (10,0)]
float NeutralTint { get; set; }
[iOS (10,0)]
CIVector NeutralLocation { get; set; }
[iOS (10,0)]
float ScaleFactor { get; set; }
[iOS (10,0)]
bool IgnoreImageOrientation { get; set; }
[iOS (10,0)]
int ImageOrientation { get; set; }
[iOS (10,0)]
bool EnableSharpening { get; set; }
[iOS (10,0)]
bool EnableChromaticNoiseTracking { get; set; }
[iOS (10,0)]
double NoiseReductionAmount { get; set; }
[iOS (10,0)][Mac (10,10)]
bool EnableVendorLensCorrection { get; set; }
[iOS (10,0)][Mac (10,10)]
double LuminanceNoiseReductionAmount { get; set; }
[iOS (10,0)][Mac (10,10)]
double ColorNoiseReductionAmount { get; set; }
[iOS (10,0)][Mac (10,10)]
double NoiseReductionSharpnessAmount { get; set; }
[iOS (10,0)][Mac (10,10)]
double NoiseReductionContrastAmount { get; set; }
[iOS (10,0)][Mac (10,10)]
[Field ("kCIInputNoiseReductionDetailAmountKey")]
double NoiseReductionDetailAmount { get; set; }
[iOS (10,0)]
CIFilter LinearSpaceFilter { get; set; }
[iOS (10,0)]
CIVector OutputNativeSize { get; set; }
[iOS (10,0)]
NSSet ActiveKeys { get; }
}
[Since (5,0)]
[Static]
interface CIFilterOutputKey {
[Field ("kCIOutputImageKey", "+CoreImage")]
NSString Image { get; }
}
[Since (5,0)]
[Static]
interface CIFilterInputKey {
[Field ("kCIInputBackgroundImageKey", "+CoreImage")]
NSString BackgroundImage { get; }
[Field ("kCIInputImageKey", "+CoreImage")]
NSString Image { get; }
[iOS (6,0), Mac(10,11)]
[Field ("kCIInputVersionKey", "+CoreImage")]
NSString Version { get; }
[iOS(9,0)]
[Field ("kCIInputRefractionKey", "+CoreImage")]
NSString Refraction { get; }
[iOS(9,0)]
[Field ("kCIInputGradientImageKey", "+CoreImage")]
NSString GradientImage { get; }
[iOS(9,0)]
[Field ("kCIInputShadingImageKey", "+CoreImage")]
NSString ShadingImage { get; }
[Since (7,0)]
[Field ("kCIInputTimeKey", "+CoreImage")]
NSString Time { get; }
[Since (7,0)]
[Field ("kCIInputTransformKey", "+CoreImage")]
NSString Transform { get; }
[Since (7,0)]
[Field ("kCIInputScaleKey", "+CoreImage")]
NSString Scale { get; }
[Since (7,0)]
[Field ("kCIInputAspectRatioKey", "+CoreImage")]
NSString AspectRatio { get; }
[Since (7,0)]
[Field ("kCIInputCenterKey", "+CoreImage")]
NSString Center { get; }
[Since (7,0)]
[Field ("kCIInputRadiusKey", "+CoreImage")]
NSString Radius { get; }
[Since (7,0)]
[Field ("kCIInputAngleKey", "+CoreImage")]
NSString Angle { get; }
[Since (7,0)]
[Field ("kCIInputWidthKey", "+CoreImage")]
NSString Width { get; }
[Since (7,0)]
[Field ("kCIInputSharpnessKey", "+CoreImage")]
NSString Sharpness { get; }
[Since (7,0)]
[Field ("kCIInputIntensityKey", "+CoreImage")]
NSString Intensity { get; }
[Since (7,0)]
[Field ("kCIInputEVKey", "+CoreImage")]
NSString EV { get; }
[Since (7,0)]
[Field ("kCIInputSaturationKey", "+CoreImage")]
NSString Saturation { get; }
[Since (7,0)]
[Field ("kCIInputColorKey", "+CoreImage")]
NSString Color { get; }
[Since (7,0)]
[Field ("kCIInputBrightnessKey", "+CoreImage")]
NSString Brightness { get; }
[Since (7,0)]
[Field ("kCIInputContrastKey", "+CoreImage")]
NSString Contrast { get; }
[iOS (9,0)]
[Field ("kCIInputBiasKey", "+CoreImage")]
NSString BiasKey { get; }
[iOS (9,0)][Mac (10,11)]
[Field ("kCIInputWeightsKey", "+CoreImage")]
NSString WeightsKey { get; }
[Since (7,0)]
[Field ("kCIInputMaskImageKey", "+CoreImage")]
NSString MaskImage { get; }
[Since (7,0)]
[Field ("kCIInputTargetImageKey", "+CoreImage")]
NSString TargetImage { get; }
[Since (7,0)]
[Field ("kCIInputExtentKey", "+CoreImage")]
NSString Extent { get; }
}
[Since (5,0)]
[Static]
interface CIFilterAttributes {
[Field ("kCIAttributeFilterName", "+CoreImage")]
NSString FilterName { get; }
[Field ("kCIAttributeFilterDisplayName", "+CoreImage")]
NSString FilterDisplayName { get; }
[iOS(9,0)]
[Field ("kCIAttributeDescription", "+CoreImage")]
NSString Description { get; }
[iOS (9,0)]
[Field ("kCIAttributeReferenceDocumentation", "+CoreImage")]
NSString ReferenceDocumentation { get; }
[Field ("kCIAttributeFilterCategories", "+CoreImage")]
NSString FilterCategories { get; }
[Field ("kCIAttributeClass", "+CoreImage")]
NSString Class { get; }
[Field ("kCIAttributeType", "+CoreImage")]
NSString Type { get; }
[Field ("kCIAttributeMin", "+CoreImage")]
NSString Min { get; }
[Field ("kCIAttributeMax", "+CoreImage")]
NSString Max { get; }
[Field ("kCIAttributeSliderMin", "+CoreImage")]
NSString SliderMin { get; }
[Field ("kCIAttributeSliderMax", "+CoreImage")]
NSString SliderMax { get; }
[Field ("kCIAttributeDefault", "+CoreImage")]
NSString Default { get; }
[Field ("kCIAttributeIdentity", "+CoreImage")]
NSString Identity { get; }
[Field ("kCIAttributeName", "+CoreImage")]
NSString Name { get; }
[Field ("kCIAttributeDisplayName", "+CoreImage")]
NSString DisplayName { get; }
[iOS(9,0)]
[Field ("kCIUIParameterSet", "+CoreImage")]
NSString UIParameterSet { get; }
[Field ("kCIAttributeTypeTime", "+CoreImage")]
NSString TypeTime { get; }
[Field ("kCIAttributeTypeScalar", "+CoreImage")]
NSString TypeScalar { get; }
[Field ("kCIAttributeTypeDistance", "+CoreImage")]
NSString TypeDistance { get; }
[Field ("kCIAttributeTypeAngle", "+CoreImage")]
NSString TypeAngle { get; }
[Field ("kCIAttributeTypeBoolean", "+CoreImage")]
NSString TypeBoolean { get; }
[Field ("kCIAttributeTypeInteger", "+CoreImage")]
NSString TypeInteger { get; }
[Field ("kCIAttributeTypeCount", "+CoreImage")]
NSString TypeCount { get; }
[Field ("kCIAttributeTypePosition", "+CoreImage")]
NSString TypePosition { get; }
[Field ("kCIAttributeTypeOffset", "+CoreImage")]
NSString TypeOffset { get; }
[Field ("kCIAttributeTypePosition3", "+CoreImage")]
NSString TypePosition3 { get; }
[Field ("kCIAttributeTypeRectangle", "+CoreImage")]
NSString TypeRectangle { get; }
[iOS (9,0)]
[Field ("kCIAttributeTypeOpaqueColor", "+CoreImage")]
NSString TypeOpaqueColor { get; }
[iOS (9,0)]
[Field ("kCIAttributeTypeGradient", "+CoreImage")]
NSString TypeGradient { get; }
[Mac(10,11)]
[Field ("kCIAttributeTypeImage", "+CoreImage")]
NSString TypeImage { get; }
[Mac(10,11)]
[Field ("kCIAttributeTypeTransform", "+CoreImage")]
NSString TypeTransform { get; }
[Mac(10,11)]
[Field ("kCIAttributeTypeColor", "+CoreImage")]
NSString TypeColor { get; }
[iOS(9,0), Mac(10,11)]
[Field ("kCIAttributeFilterAvailable_Mac", "+CoreImage")]
NSString Available_Mac { get; }
[iOS(9,0), Mac(10,11)]
[Field ("kCIAttributeFilterAvailable_iOS", "+CoreImage")]
NSString Available_iOS { get; }
}
[Since (5,0)]
[Static]
interface CIFilterCategory {
[Field ("kCICategoryDistortionEffect", "+CoreImage")]
NSString DistortionEffect { get; }
[Field ("kCICategoryGeometryAdjustment", "+CoreImage")]
NSString GeometryAdjustment { get; }
[Field ("kCICategoryCompositeOperation", "+CoreImage")]
NSString CompositeOperation { get; }
[Field ("kCICategoryHalftoneEffect", "+CoreImage")]
NSString HalftoneEffect { get; }
[Field ("kCICategoryColorAdjustment", "+CoreImage")]
NSString ColorAdjustment { get; }
[Field ("kCICategoryColorEffect", "+CoreImage")]
NSString ColorEffect { get; }
[Field ("kCICategoryTransition", "+CoreImage")]
NSString Transition { get; }
[Field ("kCICategoryTileEffect", "+CoreImage")]
NSString TileEffect { get; }
[Field ("kCICategoryGenerator", "+CoreImage")]
NSString Generator { get; }
[Field ("kCICategoryReduction", "+CoreImage")]
NSString Reduction { get; }
[Field ("kCICategoryGradient", "+CoreImage")]
NSString Gradient { get; }
[Field ("kCICategoryStylize", "+CoreImage")]
NSString Stylize { get; }
[Field ("kCICategorySharpen", "+CoreImage")]
NSString Sharpen { get; }
[Field ("kCICategoryBlur", "+CoreImage")]
NSString Blur { get; }
[Field ("kCICategoryVideo", "+CoreImage")]
NSString Video { get; }
[Field ("kCICategoryStillImage", "+CoreImage")]
NSString StillImage { get; }
[Field ("kCICategoryInterlaced", "+CoreImage")]
NSString Interlaced { get; }
[Field ("kCICategoryNonSquarePixels", "+CoreImage")]
NSString NonSquarePixels { get; }
[Field ("kCICategoryHighDynamicRange", "+CoreImage")]
NSString HighDynamicRange { get; }
[Field ("kCICategoryBuiltIn", "+CoreImage")]
NSString BuiltIn { get; }
[iOS(9,0)]
[Field ("kCICategoryFilterGenerator", "+CoreImage")]
NSString FilterGenerator { get; }
}
interface ICIFilterConstructor {}
[iOS (9,0)]
[Protocol]
interface CIFilterConstructor
{
// @required -(CIFilter * __nullable)filterWithName:(NSString * __nonnull)name;
[Abstract]
[Export ("filterWithName:")]
[return: NullAllowed]
CIFilter FilterWithName (string name);
}
[Static]
[iOS (9,0)]
interface CIUIParameterSet {
[Field ("kCIUISetBasic", "+CoreImage")]
NSString Basic { get; }
[Field ("kCIUISetIntermediate", "+CoreImage")]
NSString Intermediate { get; }
[Field ("kCIUISetAdvanced", "+CoreImage")]
NSString Advanced { get; }
[Field ("kCIUISetDevelopment", "+CoreImage")]
NSString Development { get; }
}
#if MONOMAC
[Static]
interface CIFilterApply {
[Field ("kCIApplyOptionExtent", "+CoreImage")]
NSString OptionExtent { get; }
[Field ("kCIApplyOptionDefinition", "+CoreImage")]
NSString OptionDefinition { get; }
[Field ("kCIApplyOptionUserInfo", "+CoreImage")]
NSString OptionUserInfo { get; }
[Field ("kCIApplyOptionColorSpace", "+CoreImage")]
NSString OptionColorSpace { get; }
}
#endif
#if MONOMAC
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface CIFilterGenerator : CIFilterConstructor, NSSecureCoding, NSCopying {
[Static, Export ("filterGenerator")]
CIFilterGenerator Create ();
[Static]
[Export ("filterGeneratorWithContentsOfURL:")]
CIFilterGenerator FromUrl (NSUrl aURL);
[Export ("initWithContentsOfURL:")]
IntPtr Constructor (NSUrl aURL);
[Export ("connectObject:withKey:toObject:withKey:")]
void ConnectObject (NSObject sourceObject, string withSourceKey, NSObject targetObject, string targetKey);
[Export ("disconnectObject:withKey:toObject:withKey:")]
void DisconnectObject (NSObject sourceObject, string sourceKey, NSObject targetObject, string targetKey);
[Export ("exportKey:fromObject:withName:")]
void ExportKey (string key, NSObject targetObject, string exportedKeyName);
[Export ("removeExportedKey:")]
void RemoveExportedKey (string exportedKeyName);
[Export ("exportedKeys")]
NSDictionary ExportedKeys { get; }
[Export ("setAttributes:forExportedKey:")]
void SetAttributesforExportedKey (NSDictionary attributes, NSString exportedKey);
[Export ("filter")]
CIFilter CreateFilter ();
[Export ("registerFilterName:")]
void RegisterFilterName (string name);
[Export ("writeToURL:atomically:")]
bool Save (NSUrl toUrl, bool atomically);
//Detected properties
[Export ("classAttributes")]
NSDictionary ClassAttributes { get; set; }
[Field ("kCIFilterGeneratorExportedKey", "+CoreImage")]
NSString ExportedKey { get; }
[Field ("kCIFilterGeneratorExportedKeyTargetObject", "+CoreImage")]
NSString ExportedKeyTargetObject { get; }
[Field ("kCIFilterGeneratorExportedKeyName", "+CoreImage")]
NSString ExportedKeyName { get; }
}
#endif
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
[iOS(9,0)]
interface CIFilterShape : NSCopying {
[Static]
[Export ("shapeWithRect:")]
CIFilterShape FromRect (CGRect rect);
[Export ("initWithRect:")]
IntPtr Constructor (CGRect rect);
[Export ("transformBy:interior:")]
CIFilterShape Transform (CGAffineTransform transformation, bool interiorFlag);
[Export ("insetByX:Y:")]
CIFilterShape Inset (int /* int, not NSInteger */ dx, int /* int, not NSInteger */ dy);
[Export ("unionWith:")]
CIFilterShape Union (CIFilterShape other);
[Export ("unionWithRect:")]
CIFilterShape Union (CGRect rectangle);
[Export ("intersectWith:")]
CIFilterShape Intersect (CIFilterShape other);
[Export ("intersectWithRect:")]
CIFilterShape Intersect (CGRect rectangle);
[Export ("extent")]
CGRect Extent { get; }
}
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIImage : NSSecureCoding, NSCopying {
[Static]
[Export ("imageWithCGImage:")]
CIImage FromCGImage (CGImage image);
[Static]
[Export ("imageWithCGImage:options:")]
CIImage FromCGImage (CGImage image, [NullAllowed] NSDictionary d);
[Static]
[Wrap ("FromCGImage (image, options == null ? null : options.Dictionary)")]
CIImage FromCGImage (CGImage image, [NullAllowed] CIImageInitializationOptionsWithMetadata options);
#if MONOMAC
[Static]
[Export ("imageWithCGLayer:")]
CIImage FromLayer (CGLayer layer);
[Static]
[Export ("imageWithCGLayer:options:")]
CIImage FromLayer (CGLayer layer, NSDictionary options);
#endif
[Static]
[Export ("imageWithBitmapData:bytesPerRow:size:format:colorSpace:")]
#if XAMCORE_2_0
[Internal] // there's a CIFormat enum that maps to the kCIFormatARGB8, kCIFormatRGBA16, kCIFormatRGBAf, kCIFormatRGBAh constants
#else
[Obsolete ("Use the overload acceping a CIFormat enum (instead of an int) for pixelFormat")]
#endif
CIImage FromData (NSData bitmapData, nint bytesPerRow, CGSize size, int /* CIFormat = int */ pixelFormat, [NullAllowed] CGColorSpace colorSpace);
[Since (6,0)]
[Static]
[Export ("imageWithTexture:size:flipped:colorSpace:")]
CIImage ImageWithTexture (uint /* unsigned int */ glTextureName, CGSize size, bool flipped, [NullAllowed] CGColorSpace colorspace);
[Static]
[Export ("imageWithContentsOfURL:")]
CIImage FromUrl (NSUrl url);
[Static]
[Export ("imageWithContentsOfURL:options:")]
CIImage FromUrl (NSUrl url, [NullAllowed] NSDictionary d);
[Static]
[Wrap ("FromUrl (url, options == null ? null : options.Dictionary)")]
CIImage FromUrl (NSUrl url, [NullAllowed] CIImageInitializationOptions options);
[Static]
[Export ("imageWithData:")]
CIImage FromData (NSData data);
[Static]
[Export ("imageWithData:options:")]
CIImage FromData (NSData data, [NullAllowed] NSDictionary d);
[Static]
[Wrap ("FromData (data, options == null ? null : options.Dictionary)")]
CIImage FromData (NSData data, [NullAllowed] CIImageInitializationOptionsWithMetadata options);
[Static]
[iOS(9,0)]
[Export ("imageWithCVImageBuffer:")]
CIImage FromImageBuffer (CVImageBuffer imageBuffer);
#if MONOMAC && !XAMCORE_4_0
[Static]
[Mac(10,4)]
[Export ("imageWithCVImageBuffer:options:")]
CIImage FromImageBuffer (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict);
#else
#if XAMCORE_2_0
[Static]
[iOS(9,0)]
[Internal] // This overload is needed for our strong dictionary support (but only for Unified, since for Classic the generic version is transformed to this signature)
[Export ("imageWithCVImageBuffer:options:")]
CIImage FromImageBuffer (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict);
#endif
[Static]
[iOS(9,0)]
[Export ("imageWithCVImageBuffer:options:")]
CIImage FromImageBuffer (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary<NSString, NSObject> dict);
#endif
[Static][iOS(9,0)]
[Wrap ("FromImageBuffer (imageBuffer, options == null ? null : options.Dictionary)")]
CIImage FromImageBuffer (CVImageBuffer imageBuffer, CIImageInitializationOptions options);
#if !MONOMAC
[Static]
[Export ("imageWithCVPixelBuffer:")]
CIImage FromImageBuffer (CVPixelBuffer buffer);
[Static]
[Export ("imageWithCVPixelBuffer:options:")]
CIImage FromImageBuffer (CVPixelBuffer buffer, [NullAllowed] NSDictionary dict);
[Static]
[Wrap ("FromImageBuffer (buffer, options == null ? null : options.Dictionary)")]
CIImage FromImageBuffer (CVPixelBuffer buffer, [NullAllowed] CIImageInitializationOptions options);
#endif
//[Export ("imageWithIOSurface:")]
//CIImage ImageWithIOSurface (IOSurfaceRef surface, );
//
//[Static]
//[Export ("imageWithIOSurface:options:")]
//CIImage ImageWithIOSurfaceoptions (IOSurfaceRef surface, NSDictionary d, );
[Static]
[Export ("imageWithColor:")]
CIImage ImageWithColor (CIColor color);
[Static]
[Export ("emptyImage")]
CIImage EmptyImage { get; }
[Export ("initWithCGImage:")]
IntPtr Constructor (CGImage image);
[Export ("initWithCGImage:options:")]
IntPtr Constructor (CGImage image, [NullAllowed] NSDictionary d);
[Wrap ("this (image, options == null ? null : options.Dictionary)")]
IntPtr Constructor (CGImage image, [NullAllowed] CIImageInitializationOptionsWithMetadata options);
#if MONOMAC
[Export ("initWithCGLayer:")]
IntPtr Constructor (CGLayer layer);
[Export ("initWithCGLayer:options:")]
IntPtr Constructor (CGLayer layer, [NullAllowed] NSDictionary d);
[Wrap ("this (layer, options == null ? null : options.Dictionary)")]
IntPtr Constructor (CGLayer layer, [NullAllowed] CIImageInitializationOptions options);
#endif
[Export ("initWithData:")]
IntPtr Constructor (NSData data);
[Export ("initWithData:options:")]
IntPtr Constructor (NSData data, [NullAllowed] NSDictionary d);
[Wrap ("this (data, options == null ? null : options.Dictionary)")]
IntPtr Constructor (NSData data, [NullAllowed] CIImageInitializationOptionsWithMetadata options);
[Export ("initWithBitmapData:bytesPerRow:size:format:colorSpace:")]
IntPtr Constructor (NSData d, nint bytesPerRow, CGSize size, int /* CIFormat = int */ pixelFormat, [NullAllowed] CGColorSpace colorSpace);
[Since (6,0)]
[Export ("initWithTexture:size:flipped:colorSpace:")]
IntPtr Constructor (int /* unsigned int */ glTextureName, CGSize size, bool flipped, [NullAllowed] CGColorSpace colorSpace);
[Export ("initWithContentsOfURL:")]
IntPtr Constructor (NSUrl url);
[Export ("initWithContentsOfURL:options:")]
IntPtr Constructor (NSUrl url, [NullAllowed] NSDictionary d);
[Wrap ("this (url, options == null ? null : options.Dictionary)")]
IntPtr Constructor (NSUrl url, [NullAllowed] CIImageInitializationOptions options);
// FIXME: bindings
//[Export ("initWithIOSurface:")]
//NSObject InitWithIOSurface (IOSurfaceRef surface, );
//
//[Export ("initWithIOSurface:options:")]
//NSObject InitWithIOSurfaceoptions (IOSurfaceRef surface, NSDictionary d, );
//
[iOS(9,0)]
[Export ("initWithCVImageBuffer:")]
IntPtr Constructor (CVImageBuffer imageBuffer);
#if MONOMAC && !XAMCORE_4_0
[Mac(10,4)]
[Export ("initWithCVImageBuffer:options:")]
IntPtr Constructor (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict);
#else
[iOS(9,0)]
[Export ("initWithCVImageBuffer:options:")]
IntPtr Constructor (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary<NSString, NSObject> dict);
#if XAMCORE_2_0
[iOS(9,0)]
[Internal] // This overload is needed for our strong dictionary support (but only for Unified, since for Classic the generic version is transformed to this signature)
[Sealed]
[Export ("initWithCVImageBuffer:options:")]
IntPtr Constructor (CVImageBuffer imageBuffer, [NullAllowed] NSDictionary dict);
#endif
#endif
[iOS(9,0)]
[Wrap ("this (imageBuffer, options == null ? null : options.Dictionary)")]
IntPtr Constructor (CVImageBuffer imageBuffer, [NullAllowed] CIImageInitializationOptions options);
[Mac (10,11)]
[Export ("initWithCVPixelBuffer:")]
IntPtr Constructor (CVPixelBuffer buffer);
[Mac (10,11)]
[Export ("initWithCVPixelBuffer:options:")]
IntPtr Constructor (CVPixelBuffer buffer, [NullAllowed] NSDictionary dict);
[Mac (10,11)]
[Wrap ("this (buffer, options == null ? null : options.Dictionary)")]
IntPtr Constructor (CVPixelBuffer buffer, [NullAllowed] CIImageInitializationOptions options);
[Export ("initWithColor:")]
IntPtr Constructor (CIColor color);
#if !MONOMAC || XAMCORE_2_0
[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
[Export ("initWithMTLTexture:options:")]
IntPtr Constructor (IMTLTexture texture, [NullAllowed] NSDictionary options);
#endif
#if MONOMAC
[Export ("initWithBitmapImageRep:")]
IntPtr Constructor (NSImageRep imageRep);
[Export ("drawAtPoint:fromRect:operation:fraction:")]
void Draw (CGPoint point, CGRect srcRect, NSCompositingOperation op, nfloat delta);
[Export ("drawInRect:fromRect:operation:fraction:")]
void Draw (CGRect dstRect, CGRect srcRect, NSCompositingOperation op, nfloat delta);
#endif
[Export ("imageByApplyingTransform:")]
CIImage ImageByApplyingTransform (CGAffineTransform matrix);
[Export ("imageByCroppingToRect:")]
CIImage ImageByCroppingToRect (CGRect r);
[Export ("extent")]
CGRect Extent { get; }
[Since (5,0)]
[Export ("properties"), Internal]
NSDictionary WeakProperties { get; }
[Since (5,0)]
[Wrap ("WeakProperties")]
CGImageProperties Properties { get; }
#if MONOMAC
//[Export ("definition")]
//CIFilterShape Definition ();
[Field ("kCIFormatRGBA16")]
int FormatRGBA16 { get; } /* CIFormat = int */
#endif
[Field ("kCIFormatARGB8")]
[Since (6,0)]
int FormatARGB8 { get; } /* CIFormat = int */
[Field ("kCIFormatRGBAh")]
[Since (6,0)]
int FormatRGBAh { get; } /* CIFormat = int */
[iOS (8,0)]
[Field ("kCIFormatRGBAf")]
int FormatRGBAf { get; } /* CIFormat = int */
[Field ("kCIFormatBGRA8")]
[Since (5,0)]
int FormatBGRA8 { get; } /* CIFormat = int */
[Field ("kCIFormatRGBA8")]
[Since (5,0)]
int FormatRGBA8 { get; } /* CIFormat = int */
[Field ("kCIFormatABGR8")]
[iOS (9,0)][Mac (10,11)]
int FormatABGR8 { get; }
[Field ("kCIFormatA8")]
[iOS (9,0)][Mac (10,11)]
int FormatA8 { get; }
[Field ("kCIFormatA16")]
[iOS (9,0)][Mac (10,11)]
int FormatA16 { get; }
[Field ("kCIFormatAh")]
[iOS (9,0)][Mac (10,11)]
int FormatAh { get; }
[Field ("kCIFormatAf")]
[iOS (9,0)][Mac (10,11)]
int FormatAf { get; }
[Field ("kCIFormatR8")]
[iOS (9,0)][Mac (10,11)]
int FormatR8 { get; }
[Field ("kCIFormatR16")]
[iOS (9,0)][Mac (10,11)]
int FormatR16 { get; }
[Field ("kCIFormatRh")]
[iOS (9,0)][Mac (10,11)]
int FormatRh { get; }
[Field ("kCIFormatRf")]
[iOS (9,0)][Mac (10,11)]
int FormatRf { get; }
[Field ("kCIFormatRG8")]
[iOS (9,0)][Mac (10,11)]
int FormatRG8 { get; }
[Field ("kCIFormatRG16")]
[iOS (9,0)][Mac (10,11)]
int FormatRG16 { get; }
[Field ("kCIFormatRGh")]
[iOS (9,0)][Mac (10,11)]
int FormatRGh { get; }
[Field ("kCIFormatRGf")]
[iOS (9,0)][Mac (10,11)]
int FormatRGf { get; }
#if !MONOMAC
// UIKit extensions
[Since (5,0)]
[Export ("initWithImage:")]
IntPtr Constructor (UIImage image);
[Since (5,0)]
[Export ("initWithImage:options:")]
IntPtr Constructor (UIImage image, [NullAllowed] NSDictionary options);
[Since (5,0)]
[Wrap ("this (image, options == null ? null : options.Dictionary)")]
IntPtr Constructor (UIImage image, [NullAllowed] CIImageInitializationOptions options);
#endif
[MountainLion]
[Field ("kCIImageAutoAdjustFeatures"), Internal]
NSString AutoAdjustFeaturesKey { get; }
[MountainLion]
[Field ("kCIImageAutoAdjustRedEye"), Internal]
NSString AutoAdjustRedEyeKey { get; }
[MountainLion]
[Field ("kCIImageAutoAdjustEnhance"), Internal]
NSString AutoAdjustEnhanceKey { get; }
// [Availability (Deprecated = Platform.iOS_9_0)]
// [Availability (Deprecated = Platform.Mac_10_11)]
// [Export ("autoAdjustmentFilters"), Internal]
// NSArray _GetAutoAdjustmentFilters ();
[Export ("autoAdjustmentFiltersWithOptions:"), Internal]
NSArray _GetAutoAdjustmentFilters ([NullAllowed] NSDictionary opts);
[Field ("kCIImageColorSpace"), Internal]
NSString CIImageColorSpaceKey { get; }
[MountainLion]
[Field ("kCIImageProperties"), Internal]
NSString CIImagePropertiesKey { get; }
[Since (6,0)] // publicly documented in 7.0 but really available since 6.0
[Mac (10,12)]
[Export ("regionOfInterestForImage:inRect:")]
CGRect GetRegionOfInterest (CIImage im, CGRect r);
//
// iOS 8.0
//
[iOS (8,0), Mac (10,10)]
[Export ("imageByApplyingOrientation:")]
CIImage CreateWithOrientation (CIImageOrientation orientation);
[iOS (8,0), Mac (10,10)]
[Export ("imageTransformForOrientation:")]
CGAffineTransform GetImageTransform (CIImageOrientation orientation);
[iOS (8,0), Mac (10,10)]
[Export ("imageByClampingToExtent")]
CIImage CreateByClampingToExtent ();
[iOS (8,0)]
[Export ("imageByCompositingOverImage:")]
CIImage CreateByCompositingOverImage (CIImage dest);
[iOS (8,0), Mac (10,10)]
[Export ("imageByApplyingFilter:withInputParameters:")]
CIImage CreateByFiltering (string filterName, [NullAllowed] NSDictionary inputParameters);
[iOS (8,0), Mac (10,10)]
[Field ("kCIImageAutoAdjustCrop"), Internal]
NSString AutoAdjustCrop { get; }
[iOS (8,0), Mac (10,10)]
[Field ("kCIImageAutoAdjustLevel"), Internal]
NSString AutoAdjustLevel { get; }
[iOS (9,0)]
[NullAllowed, Export ("url")]
NSUrl Url { get; }
[iOS (9,0)]
[NullAllowed, Export ("colorSpace")]
CGColorSpace ColorSpace { get; }
[iOS (9,0)]
[Static, Internal]
[Export ("imageWithImageProvider:size::format:colorSpace:options:")]
CIImage FromProvider (ICIImageProvider provider, nuint width, nuint height, int format, [NullAllowed] CGColorSpace colorSpace, [NullAllowed] NSDictionary options);
[iOS (9,0)]
[Internal]
[Export ("initWithImageProvider:size::format:colorSpace:options:")]
IntPtr Constructor (ICIImageProvider provider, nuint width, nuint height, int f, [NullAllowed] CGColorSpace colorSpace, [NullAllowed] NSDictionary options);
#if !MONOMAC || XAMCORE_2_0
[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
[Static]
[Export ("imageWithMTLTexture:options:")]
CIImage FromMetalTexture (IMTLTexture texture, [NullAllowed] NSDictionary<NSString, NSObject> options);
#endif
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageByClampingToRect:")]
CIImage CreateByClamping (CGRect rect);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageByColorMatchingColorSpaceToWorkingSpace:")]
[return: NullAllowed]
CIImage CreateByColorMatchingColorSpaceToWorkingSpace (CGColorSpace colorSpace);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageByColorMatchingWorkingSpaceToColorSpace:")]
[return: NullAllowed]
CIImage CreateByColorMatchingWorkingSpaceToColorSpace (CGColorSpace colorSpace);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageByPremultiplyingAlpha")]
CIImage CreateByPremultiplyingAlpha ();
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageByUnpremultiplyingAlpha")]
CIImage CreateByUnpremultiplyingAlpha ();
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageBySettingAlphaOneInExtent:")]
CIImage CreateBySettingAlphaOne (CGRect extent);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageByApplyingGaussianBlurWithSigma:")]
CIImage CreateByApplyingGaussianBlur (double sigma);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[Export ("imageBySettingProperties:")]
CIImage CreateBySettingProperties (NSDictionary properties);
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[NullAllowed, Export ("pixelBuffer")]
CVPixelBuffer PixelBuffer { get; }
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[NullAllowed, Export ("CGImage")]
CGImage CGImage { get; }
}
interface ICIImageProcessorInput {}
[iOS (10,0)][Mac (10,12)]
[Protocol]
interface CIImageProcessorInput {
[Abstract]
[Export ("region")]
CGRect Region { get; }
[Abstract]
[Export ("bytesPerRow")]
nuint BytesPerRow { get; }
[Abstract]
[Export ("format")]
CIFormat Format { get; }
[Abstract]
[Export ("baseAddress")]
IntPtr BaseAddress { get; }
[Abstract]
[NullAllowed, Export ("pixelBuffer")]
CVPixelBuffer PixelBuffer { get; }
#if !MONOMAC || XAMCORE_2_0
[Abstract]
[NullAllowed, Export ("metalTexture")]
IMTLTexture MetalTexture { get; }
#endif
}
interface ICIImageProcessorOutput {}
[iOS (10,0)][Mac (10,12)]
[Protocol]
interface CIImageProcessorOutput {
[Abstract]
[Export ("region")]
CGRect Region { get; }
[Abstract]
[Export ("bytesPerRow")]
nuint BytesPerRow { get; }
[Abstract]
[Export ("format")]
CIFormat Format { get; }
[Abstract]
[Export ("baseAddress")]
IntPtr BaseAddress { get; }
[Abstract]
[NullAllowed, Export ("pixelBuffer")]
CVPixelBuffer PixelBuffer { get; }
#if !MONOMAC || XAMCORE_2_0
[Abstract]
[NullAllowed, Export ("metalTexture")]
IMTLTexture MetalTexture { get; }
[Abstract]
[NullAllowed, Export ("metalCommandBuffer")]
IMTLCommandBuffer MetalCommandBuffer { get; }
#endif
}
[iOS (9,0)]
[StrongDictionary ("CIImageProviderKeys")]
interface CIImageProviderOptions {
NSObject TileSize { get;set; }
NSObject UserInfo { get; set; }
}
[Internal]
[Static]
[iOS (9,0)]
interface CIImageProviderKeys {
[Field ("kCIImageProviderTileSize")]
NSString TileSizeKey { get; }
[Field ("kCIImageProviderUserInfo")]
NSString UserInfoKey { get; }
}
interface ICIImageProvider {}
// Informal protocol
[Protocol (IsInformal = true)]
interface CIImageProvider {
[Abstract]
[Export ("provideImageData:bytesPerRow:origin::size::userInfo:")]
unsafe void ProvideImageData (IntPtr data, nuint rowbytes, nuint x, nuint y, nuint width, nuint height, [NullAllowed] NSObject info);
}
delegate CGRect CIKernelRoiCallback (int /* int, not NSInteger */ index, CGRect rect);
[iOS (8,0), Mac (10,10)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor] // avoid crashes
interface CIKernel {
#if !XAMCORE_2_0
[Obsolete ("Use FromProgramSingle")] // better API
[Static, Export ("kernelWithString:")]
CIKernel FromProgram (string coreImageShaderProgram);
[Obsolete ("Use FromProgramMultiple")] // better API
[Static, Export ("kernelsWithString:")]
CIKernel [] FromPrograms (string coreImageShaderProgram);
#endif
[Static, Export ("kernelsWithString:")]
CIKernel [] FromProgramMultiple (string coreImageShaderProgram);
[Static, Export ("kernelWithString:")]
CIKernel FromProgramSingle (string coreImageShaderProgram);
[Export ("name")]
string Name { get; }
#if MONOMAC
[Export ("setROISelector:")]
void SetRegionOfInterestSelector (Selector aMethod);
#endif
[iOS (8,0), Mac (10,11)]
[Export ("applyWithExtent:roiCallback:arguments:")]
CIImage ApplyWithExtent (CGRect extent, CIKernelRoiCallback callback, [NullAllowed] NSObject [] args);
}
[iOS (8,0), Mac(10,11)]
[BaseType (typeof (CIKernel))]
[DisableDefaultCtor] // returns a nil handle -> instances of this type are returned from `kernel[s]WithString:`
interface CIColorKernel {
[Export ("applyWithExtent:arguments:")]
CIImage ApplyWithExtent (CGRect extent, [NullAllowed] NSObject [] args);
// Note: the API is supported in iOS 8, but with iOS 9, they guarantee
// a more derived result
[New, Static, Export ("kernelWithString:")]
CIColorKernel FromProgramSingle (string coreImageShaderProgram);
}
[iOS (8,0)][Mac (10,11)]
[BaseType (typeof (CIKernel))]
[DisableDefaultCtor] // returns a nil handle -> instances of this type are returned from `kernel[s]WithString:`
interface CIWarpKernel {
[Export ("applyWithExtent:roiCallback:inputImage:arguments:")]
CIImage ApplyWithExtent (CGRect extent, CIKernelRoiCallback callback, CIImage image, [NullAllowed] NSObject [] args);
// Note: the API is supported in iOS 8, but with iOS 9, they guarantee
// a more derived result
[New, Static, Export ("kernelWithString:")]
CIWarpKernel FromProgramSingle (string coreImageShaderProgram);
}
[iOS (9,0)]
[BaseType (typeof (NSObject))]
interface CIImageAccumulator {
[Static]
[Export ("imageAccumulatorWithExtent:format:")]
#if !MONOMAC
[Internal]
#endif
CIImageAccumulator FromRectangle (CGRect rect, int /* CIFormat = int */ ciImageFormat);
[iOS (9,0)]
[Static, Internal]
[Export ("imageAccumulatorWithExtent:format:colorSpace:")]
CIImageAccumulator FromRectangle (CGRect extent, int format, CGColorSpace colorSpace);
[Export ("initWithExtent:format:")]
#if !MONOMAC
[Internal]
#endif
IntPtr Constructor (CGRect rectangle, int /* CIFormat = int */ ciImageFormat);
[Export ("initWithExtent:format:colorSpace:")][Internal]
IntPtr Constructor (CGRect extent, int format, CGColorSpace colorSpace);
[Export ("extent")]
CGRect Extent { get; }
[Export ("format")]
int CIImageFormat { get; } /* CIFormat = int */
[Export ("setImage:dirtyRect:")]
void SetImageDirty (CIImage image, CGRect dirtyRect);
[Export ("clear")]
void Clear ();
//Detected properties
[Export ("image")]
CIImage Image { get; set; }
}
#if MONOMAC
[BaseType (typeof (NSObject))]
interface CIPlugIn {
[Static]
[Export ("loadAllPlugIns")]
void LoadAllPlugIns ();
[Static]
[Export ("loadNonExecutablePlugIns")]
void LoadNonExecutablePlugIns ();
[Static]
[Export ("loadPlugIn:allowNonExecutable:")]
void LoadPlugIn (NSUrl pluginUrl, bool allowNonExecutable);
}
#endif
[iOS (9,0)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface CISampler : NSCopying {
[Static, Export ("samplerWithImage:")]
CISampler FromImage (CIImage sourceImage);
[Internal, Static]
[Export ("samplerWithImage:options:")]
CISampler FromImage (CIImage sourceImag, NSDictionary options);
[Export ("initWithImage:")]
IntPtr Constructor (CIImage sourceImage);
[DesignatedInitializer]
[Internal, Export ("initWithImage:options:")]
NSObject Constructor (CIImage image, NSDictionary options);
[Export ("definition")]
CIFilterShape Definition { get; }
[Export ("extent")]
CGRect Extent { get; }
[Field ("kCISamplerAffineMatrix", "+CoreImage"), Internal]
NSString AffineMatrix { get; }
[Field ("kCISamplerWrapMode", "+CoreImage"), Internal]
NSString WrapMode { get; }
[Field ("kCISamplerFilterMode", "+CoreImage"), Internal]
NSString FilterMode { get; }
[Field ("kCISamplerWrapBlack", "+CoreImage"), Internal]
NSString WrapBlack { get; }
[Field ("kCISamplerWrapClamp", "+CoreImage"), Internal]
NSString WrapClamp { get; }
[Field ("kCISamplerFilterNearest", "+CoreImage"), Internal]
NSString FilterNearest { get; }
[Field ("kCISamplerFilterLinear", "+CoreImage"), Internal]
NSString FilterLinear { get; }
[iOS (9,0)]
[Field ("kCISamplerColorSpace", "+CoreImage"), Internal]
NSString ColorSpace { get; }
}
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIVector : NSSecureCoding, NSCopying {
[Static, Internal, Export ("vectorWithValues:count:")]
CIVector _FromValues (IntPtr values, nint count);
[Static]
[Export ("vectorWithX:")]
CIVector Create (nfloat x);
[Static]
[Export ("vectorWithX:Y:")]
CIVector Create (nfloat x, nfloat y);
[Static]
[Export ("vectorWithX:Y:Z:")]
CIVector Create (nfloat x, nfloat y, nfloat z);
[Static]
[Export ("vectorWithX:Y:Z:W:")]
CIVector Create (nfloat x, nfloat y, nfloat z, nfloat w);
#if !MONOMAC
[Static]
[Export ("vectorWithCGPoint:")]
CIVector Create (CGPoint point);
[Static]
[Export ("vectorWithCGRect:")]
CIVector Create (CGRect point);
[Static]
[Export ("vectorWithCGAffineTransform:")]
CIVector Create (CGAffineTransform affineTransform);
#endif
[Static]
[Export ("vectorWithString:")]
CIVector FromString (string representation);
[DesignatedInitializer]
[Internal, Export ("initWithValues:count:")]
IntPtr Constructor (IntPtr values, nint count);
[Mac (10,9)]
[iOS (5,0)]
[Export ("initWithCGPoint:")]
IntPtr Constructor (CGPoint p);
[Mac (10,9)]
[iOS (5,0)]
[Export ("initWithCGRect:")]
IntPtr Constructor (CGRect r);
[Mac (10,9)]
[iOS (5,0)]
[Export ("initWithCGAffineTransform:")]
IntPtr Constructor (CGAffineTransform r);
[Export ("initWithX:")]
IntPtr Constructor(nfloat x);
[Export ("initWithX:Y:")]
IntPtr Constructor (nfloat x, nfloat y);
[Export ("initWithX:Y:Z:")]
IntPtr Constructor (nfloat x, nfloat y, nfloat z);
[Export ("initWithX:Y:Z:W:")]
IntPtr Constructor (nfloat x, nfloat y, nfloat z, nfloat w);
[Export ("initWithString:")]
IntPtr Constructor (string representation);
[Export ("valueAtIndex:"), Internal]
nfloat ValueAtIndex (nint index);
[Export ("count")]
nint Count { get; }
[Export ("X")]
nfloat X { get; }
[Export ("Y")]
nfloat Y { get; }
[Export ("Z")]
nfloat Z { get; }
[Export ("W")]
nfloat W { get; }
[Mac (10,9)]
[Export ("CGPointValue")]
CGPoint Point { get; }
[Mac (10,9)]
[Export ("CGRectValue")]
CGRect Rectangle { get; }
[Mac (10,9)]
[Export ("CGAffineTransformValue")]
CGAffineTransform AffineTransform { get; }
[Export ("stringRepresentation"), Internal]
string StringRepresentation ();
}
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIDetector {
[Static, Export ("detectorOfType:context:options:"), Internal]
CIDetector FromType ([NullAllowed] NSString detectorType, [NullAllowed] CIContext context, [NullAllowed] NSDictionary options);
[Export ("featuresInImage:")]
CIFeature [] FeaturesInImage (CIImage image);
[Export ("featuresInImage:options:")]
CIFeature [] FeaturesInImage (CIImage image, [NullAllowed] NSDictionary options);
[Field ("CIDetectorTypeFace"), Internal]
NSString TypeFace { get; }
[MountainLion]
[Field ("CIDetectorImageOrientation"), Internal]
NSString ImageOrientation { get; }
[Field ("CIDetectorAccuracy"), Internal]
NSString Accuracy { get; }
[Field ("CIDetectorAccuracyLow"), Internal]
NSString AccuracyLow { get; }
[Field ("CIDetectorAccuracyHigh"), Internal]
NSString AccuracyHigh { get; }
[Since (6,0)]
[Mac (10,8)]
[Field ("CIDetectorTracking"), Internal]
NSString Tracking { get; }
[Since (6,0)]
[Mac (10,8)]
[Field ("CIDetectorMinFeatureSize"), Internal]
NSString MinFeatureSize { get; }
[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
[Field ("CIDetectorMaxFeatureCount"), Internal]
NSString MaxFeatureCount { get; }
[Since (7,0), Mavericks]
[Field ("CIDetectorEyeBlink"), Internal]
NSString EyeBlink { get; }
[Since (7,0), Mavericks]
[Field ("CIDetectorSmile"), Internal]
NSString Smile { get; }
[iOS (8,0), Mac (10,10)]
[Field ("CIDetectorAspectRatio")]
NSString AspectRatio { get; }
[iOS (8,0), Mac (10,10)]
[Field ("CIDetectorFocalLength")]
NSString FocalLength { get; }
[iOS (8,0), Mac (10,10)]
[Field ("CIDetectorTypeQRCode")]
NSString TypeQRCode { get; }
[iOS (8,0), Mac (10,10)]
[Field ("CIDetectorTypeRectangle")]
NSString TypeRectangle { get; }
[iOS (9,0), Mac (10,11)]
[Field ("CIDetectorNumberOfAngles")]
NSString NumberOfAngles { get; }
[iOS (9,0), Mac(10, 11, onlyOn64 : true)]
[Field ("CIDetectorReturnSubFeatures")]
NSString ReturnSubFeatures { get; }
[iOS (9,0), Mac(10, 11, onlyOn64 : true)]
[Field ("CIDetectorTypeText")]
NSString TypeText { get; }
}
[BaseType (typeof (NSObject))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIFeature {
[Export ("type", ArgumentSemantic.Retain)]
NSString Type { get; }
[Export ("bounds", ArgumentSemantic.Assign)]
CGRect Bounds { get; }
[Field ("CIFeatureTypeFace")]
NSString TypeFace { get; }
[iOS (9,0)][Mac (10,10)]
[Field ("CIFeatureTypeRectangle")]
NSString TypeRectangle { get; }
[iOS (9,0)][Mac (10,11)]
[Field ("CIFeatureTypeQRCode")]
NSString TypeQRCode { get; }
[iOS (9,0)][Mac (10,11)]
[Field ("CIFeatureTypeText")]
NSString TypeText { get; }
}
[BaseType (typeof (CIFeature))]
[Since (5,0)]
[DisableDefaultCtor]
interface CIFaceFeature {
[Export ("hasLeftEyePosition", ArgumentSemantic.Assign)]
bool HasLeftEyePosition { get; }
[Export ("leftEyePosition", ArgumentSemantic.Assign)]
CGPoint LeftEyePosition { get; }
[Export ("hasRightEyePosition", ArgumentSemantic.Assign)]
bool HasRightEyePosition { get; }
[Export ("rightEyePosition", ArgumentSemantic.Assign)]
CGPoint RightEyePosition { get; }
[Export ("hasMouthPosition", ArgumentSemantic.Assign)]
bool HasMouthPosition { get; }
[Export ("mouthPosition", ArgumentSemantic.Assign)]
CGPoint MouthPosition { get; }
[Since (6,0)]
[Export ("hasTrackingID", ArgumentSemantic.Assign)]
bool HasTrackingId { get; }
[Since (6,0)]
[Export ("trackingID", ArgumentSemantic.Assign)]
int TrackingId { get; } /* int, not NSInteger */
[Since (6,0)]
[Export ("hasTrackingFrameCount", ArgumentSemantic.Assign)]
bool HasTrackingFrameCount { get; }
[Since (6,0)]
[Export ("trackingFrameCount", ArgumentSemantic.Assign)]
int TrackingFrameCount { get; } /* int, not NSInteger */
[Since (7,0), Mavericks]
[Export ("bounds", ArgumentSemantic.Assign)]
CGRect Bounds { get; }
[Since (7,0), Mavericks]
[Export ("faceAngle", ArgumentSemantic.Assign)]
float FaceAngle { get; } /* float, not CGFloat */
[Since (7,0), Mavericks]
[Export ("hasFaceAngle", ArgumentSemantic.Assign)]
bool HasFaceAngle { get; }
[Since (7,0), Mavericks]
[Export ("hasSmile", ArgumentSemantic.Assign)]
bool HasSmile { get; }
[Since (7,0), Mavericks]
[Export ("leftEyeClosed", ArgumentSemantic.Assign)]
bool LeftEyeClosed { get; }
[Since (7,0), Mavericks]
[Export ("rightEyeClosed", ArgumentSemantic.Assign)]
bool RightEyeClosed { get; }
}
[iOS (8,0), Mac (10,10)]
[BaseType (typeof (CIFeature))]
interface CIRectangleFeature {
[Export ("bounds", ArgumentSemantic.UnsafeUnretained)]
CGRect Bounds { get; }
[Export ("topLeft", ArgumentSemantic.UnsafeUnretained)]
CGPoint TopLeft { get; }
[Export ("topRight", ArgumentSemantic.UnsafeUnretained)]
CGPoint TopRight { get; }
[Export ("bottomLeft", ArgumentSemantic.UnsafeUnretained)]
CGPoint BottomLeft { get; }
[Export ("bottomRight", ArgumentSemantic.UnsafeUnretained)]
CGPoint BottomRight { get; }
}
[iOS (8,0)]
[Mac (10,12)]
[BaseType (typeof (CIFeature))]
partial interface CIQRCodeFeature {
[Export ("bounds", ArgumentSemantic.Assign)]
CGRect Bounds { get; }
[Export ("topLeft", ArgumentSemantic.Assign)]
CGPoint TopLeft { get; }
[Export ("topRight", ArgumentSemantic.Assign)]
CGPoint TopRight { get; }
[Export ("bottomLeft", ArgumentSemantic.Assign)]
CGPoint BottomLeft { get; }
[Export ("bottomRight", ArgumentSemantic.Assign)]
CGPoint BottomRight { get; }
[Export ("messageString")]
string MessageString { get; }
}
[iOS (9,0)]
[Mac (10,12, onlyOn64 : true)]
[BaseType (typeof (CIFeature))]
interface CITextFeature {
[Export ("bounds")]
CGRect Bounds { get; }
[Export ("topLeft")]
CGPoint TopLeft { get; }
[Export ("topRight")]
CGPoint TopRight { get; }
[Export ("bottomLeft")]
CGPoint BottomLeft { get; }
[Export ("bottomRight")]
CGPoint BottomRight { get; }
[Export ("subFeatures")]
CIFeature[] SubFeatures { get; }
}
[iOS (10,0)][Mac (10,12)]
[TV (10,0)]
[BaseType (typeof (NSObject))]
interface CIImageProcessorKernel {
[Static]
[Export ("processWithInputs:arguments:output:error:")]
bool Process ([NullAllowed] ICIImageProcessorInput[] inputs, [NullAllowed] NSDictionary<NSString, NSObject> arguments, ICIImageProcessorOutput output, out NSError error);
[Static]
[Export ("roiForInput:arguments:outputRect:")]
CGRect GetRegionOfInterest (int input, [NullAllowed] NSDictionary<NSString, NSObject> arguments, CGRect outputRect);
[Static]
[Export ("formatForInputAtIndex:")]
CIFormat GetFormat (int input);
[Static]
[Export ("outputFormat")]
CIFormat OutputFormat { get; }
[Static]
[Export ("synchronizeInputs")]
bool SynchronizeInputs { get; }
[Static]
[Export ("applyWithExtent:inputs:arguments:error:")]
[return: NullAllowed]
CIImage Apply (CGRect extent, [NullAllowed] CIImage[] inputs, [NullAllowed] NSDictionary<NSString, NSObject> args, out NSError error);
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIFilter))]
interface CIAccordionFoldTransition {
[CoreImageFilterProperty ("inputNumberOfFolds")]
int NumberOfFolds { get; set; }
[CoreImageFilterProperty ("inputTime")]
float Time { get; set; }
[CoreImageFilterProperty ("inputFoldShadowAmount")]
float FoldShadowAmount { get; set; }
[CoreImageFilterProperty ("inputBottomHeight")]
float BottomHeight { get; set; }
[CoreImageFilterProperty ("inputTargetImage")]
CIImage TargetImage { get; set; }
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[Abstract]
[BaseType (typeof (CIFilter))]
interface CICompositingFilter {
[CoreImageFilterProperty ("inputBackgroundImage")]
CIImage BackgroundImage { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CIAdditionCompositing {
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[Abstract]
[BaseType (typeof (CIFilter))]
interface CIAffineFilter {
[NoMac]
[CoreImageFilterProperty ("inputTransform")]
CGAffineTransform Transform { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIAffineFilter))]
interface CIAffineClamp {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIAffineFilter))]
interface CIAffineTile {
}
[CoreImageFilter]
[BaseType (typeof (CIAffineFilter))]
interface CIAffineTransform {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIAreaAverage {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[BaseType (typeof (CIFilter))]
interface CIAreaHistogram {
[CoreImageFilterProperty ("inputCount")]
float Count { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIAreaMaximum {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIAreaMaximumAlpha {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIAreaMinimum {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIAreaMinimumAlpha {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter (StringCtorVisibility = MethodAttributes.Public)]
[Abstract]
[BaseType (typeof (CIFilter))]
interface CICodeGenerator {
[CoreImageFilterProperty ("inputMessage")]
NSData Message { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CICodeGenerator))]
interface CIAztecCodeGenerator {
[CoreImageFilterProperty ("inputCompactStyle")]
bool CompactStyle { get; set; }
[CoreImageFilterProperty ("inputLayers")]
int Layers { get; set; }
[CoreImageFilterProperty ("inputCorrectionLevel")]
float CorrectionLevel { get; set; }
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[Abstract]
[BaseType (typeof (CIFilter))]
interface CITransitionFilter {
[CoreImageFilterProperty ("inputTime")]
float Time { get; set; }
[CoreImageFilterProperty ("inputTargetImage")]
CIImage TargetImage { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIBarsSwipeTransition {
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputBarOffset")]
float BarOffset { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIBlendWithMask))]
interface CIBlendWithAlphaMask {
}
[CoreImageFilter (DefaultCtorVisibility = MethodAttributes.Public, StringCtorVisibility = MethodAttributes.Public)]
[iOS (6,0)]
[BaseType (typeof (CIBlendFilter))]
interface CIBlendWithMask {
// renamed for API compatibility
[CoreImageFilterProperty ("inputMaskImage")]
CIImage Mask { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIBloom {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIBoxBlur {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[iOS (6,0)]
[Abstract]
[BaseType (typeof (CIFilter))]
interface CIDistortionFilter {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIDistortionFilter ))]
interface CIBumpDistortion {
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIDistortionFilter))]
interface CIBumpDistortionLinear {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CICheckerboardGenerator {
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
[CoreImageFilterProperty ("inputSharpness")]
float Sharpness { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIDistortionFilter))]
interface CICircleSplashDistortion {
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[Abstract]
[BaseType (typeof (CIFilter))]
interface CIScreenFilter {
[CoreImageFilterProperty ("inputSharpness")]
float Sharpness { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIScreenFilter))]
interface CICircularScreen {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CICircularWrap {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter), Name="CICMYKHalftone")]
interface CICmykHalftone {
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
// renamed for API compatibility
[CoreImageFilterProperty ("inputUCR")]
float UnderColorRemoval { get; set; }
// renamed for API compatibility
[CoreImageFilterProperty ("inputGCR")]
float GrayComponentReplacement { get; set; }
// renamed for API compatibility
[CoreImageFilterProperty ("inputSharpness")]
float InputSharpness { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CICodeGenerator))]
interface CICode128BarcodeGenerator {
[CoreImageFilterProperty ("inputQuietSpace")]
float QuietSpace { get; set; }
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[Abstract]
[BaseType (typeof (CIFilter))]
interface CIBlendFilter {
[CoreImageFilterProperty ("inputBackgroundImage")]
CIImage BackgroundImage { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIColorBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIColorBurnBlendMode {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIFilter))]
interface CIColorClamp {
// here the prefix was not removed, edited to keep API compatibility
[CoreImageFilterProperty ("inputMinComponents")]
CIVector InputMinComponents { get; set; }
// here the prefix was not removed, edited to keep API compatibility
[CoreImageFilterProperty ("inputMaxComponents")]
CIVector InputMaxComponents { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIColorControls {
[CoreImageFilterProperty ("inputContrast")]
float Contrast { get; set; }
[CoreImageFilterProperty ("inputBrightness")]
float Brightness { get; set; }
[CoreImageFilterProperty ("inputSaturation")]
float Saturation { get; set; }
}
[CoreImageFilter (DefaultCtorVisibility = MethodAttributes.Public, StringCtorVisibility = MethodAttributes.Public)]
[iOS (7,0)] // not part of the attributes dictionary -> [NoiOS] is generated
[Mac (10,9)] // not part of the attributes dictionary -> [NoMac] is generated
[BaseType (typeof (CIFilter))]
interface CIColorCrossPolynomial {
[CoreImageFilterProperty ("inputRedCoefficients")]
CIVector RedCoefficients { get; set; }
[CoreImageFilterProperty ("inputBlueCoefficients")]
CIVector BlueCoefficients { get; set; }
[CoreImageFilterProperty ("inputGreenCoefficients")]
CIVector GreenCoefficients { get; set; }
}
[CoreImageFilter (DefaultCtorVisibility = MethodAttributes.Public, StringCtorVisibility = MethodAttributes.Public)]
[BaseType (typeof (CIFilter))]
interface CIColorCube {
[CoreImageFilterProperty ("inputCubeDimension")]
float CubeDimension { get; set; }
[CoreImageFilterProperty ("inputCubeData")]
NSData CubeData { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIColorCube))]
interface CIColorCubeWithColorSpace {
[CoreImageFilterProperty ("inputColorSpace")]
CGColorSpace ColorSpace { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIColorDodgeBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIColorInvert {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIColorMap {
[CoreImageFilterProperty ("inputGradientImage")]
CIImage GradientImage { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIColorMatrix {
[CoreImageFilterProperty ("inputAVector")]
CIVector AVector { get; set; }
[CoreImageFilterProperty ("inputBiasVector")]
CIVector BiasVector { get; set; }
[CoreImageFilterProperty ("inputBVector")]
CIVector BVector { get; set; }
[CoreImageFilterProperty ("inputGVector")]
CIVector GVector { get; set; }
[CoreImageFilterProperty ("inputRVector")]
CIVector RVector { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIColorMonochrome {
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIColorCrossPolynomial))]
interface CIColorPolynomial {
[CoreImageFilterProperty ("inputAlphaCoefficients")]
CIVector AlphaCoefficients { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIColorPosterize {
[CoreImageFilterProperty ("inputLevels")]
float Levels { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[Mac (10,9)]
[BaseType (typeof (CIFilter))]
interface CIColumnAverage {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIComicEffect {
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIConstantColorGenerator {
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
}
[CoreImageFilter (StringCtorVisibility = MethodAttributes.Public)]
[Abstract]
[BaseType (typeof (CIFilter))]
interface CIConvolutionCore {
[CoreImageFilterProperty ("inputWeights")]
CIVector Weights { get; set; }
[CoreImageFilterProperty ("inputBias")]
float Bias { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIConvolutionCore))]
interface CIConvolution3X3 {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIConvolutionCore))]
interface CIConvolution5X5 {
}
[CoreImageFilter]
[iOS (9,0)]
[Mac (10,9)]
[BaseType (typeof (CIConvolutionCore))]
interface CIConvolution7X7 {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIConvolutionCore))]
interface CIConvolution9Horizontal {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIConvolutionCore))]
interface CIConvolution9Vertical {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CICopyMachineTransition {
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
[CoreImageFilterProperty ("inputOpacity")]
float Opacity { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CICrop {
[CoreImageFilterProperty ("inputRectangle")]
CIVector Rectangle { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CICrystallize {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIDarkenBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIDifferenceBlendMode {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIDiscBlur {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIDisintegrateWithMaskTransition {
[CoreImageFilterProperty ("inputShadowDensity")]
float ShadowDensity { get; set; }
// renamed for API compatibility
[CoreImageFilterProperty ("inputMaskImage")]
CIImage Mask { get; set; }
[CoreImageFilterProperty ("inputShadowRadius")]
float ShadowRadius { get; set; }
[CoreImageFilterProperty ("inputShadowOffset")]
CIVector ShadowOffset { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIDisplacementDistortion {
[CoreImageFilterProperty ("inputDisplacementImage")]
CIImage DisplacementImage { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIDissolveTransition {
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIBlendFilter))]
interface CIDivideBlendMode {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIScreenFilter))]
interface CIDotScreen {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIDroste {
[CoreImageFilterProperty ("inputStrands")]
float Strands { get; set; }
[CoreImageFilterProperty ("inputInsetPoint0")]
CIVector InsetPoint0 { get; set; }
[CoreImageFilterProperty ("inputRotation")]
float Rotation { get; set; }
[CoreImageFilterProperty ("inputInsetPoint1")]
CIVector InsetPoint1 { get; set; }
[CoreImageFilterProperty ("inputZoom")]
float Zoom { get; set; }
[CoreImageFilterProperty ("inputPeriodicity")]
float Periodicity { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIEdges {
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIEdgeWork {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
}
[CoreImageFilter (IntPtrCtorVisibility = MethodAttributes.Family)] // was already protected in classic
[iOS (6,0)]
[Abstract]
[BaseType (typeof (CIFilter))]
interface CITileFilter {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CIEightfoldReflectedTile {
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIExclusionBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIExposureAdjust {
[CoreImageFilterProperty ("inputEV")]
float EV { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIFalseColor {
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIFlashTransition {
// for some reason we prefixed all Striation* with Max - API compatibility
[CoreImageFilterProperty ("inputStriationContrast")]
float MaxStriationContrast { get; set; }
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputFadeThreshold")]
float FadeThreshold { get; set; }
[CoreImageFilterProperty ("inputMaxStriationRadius")]
float MaxStriationRadius { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
// for some reason we prefixed all Striation* with Max - API compatibility
[CoreImageFilterProperty ("inputStriationStrength")]
float MaxStriationStrength { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CIFourfoldReflectedTile {
[CoreImageFilterProperty ("inputAcuteAngle")]
float AcuteAngle { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CIFourfoldRotatedTile {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CIFourfoldTranslatedTile {
[CoreImageFilterProperty ("inputAcuteAngle")]
float AcuteAngle { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIGammaAdjust {
[CoreImageFilterProperty ("inputPower")]
float Power { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIGaussianBlur {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIGaussianGradient {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[BaseType (typeof (CIFilter))]
interface CIGlassDistortion {
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
[CoreImageFilterProperty ("inputTexture")]
CIImage Texture { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIGlassLozenge {
[CoreImageFilterProperty ("inputPoint1")]
CIVector Point1 { get; set; }
[CoreImageFilterProperty ("inputPoint0")]
CIVector Point0 { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputRefraction")]
float Refraction { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CIGlideReflectedTile {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIGloom {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIHardLightBlendMode {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIScreenFilter))]
interface CIHatchedScreen {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIHeightFieldFromMask {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIHexagonalPixellate {
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[Mac (10,7)]
[BaseType (typeof (CIFilter))]
interface CIHighlightShadowAdjust {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputHighlightAmount")]
float HighlightAmount { get; set; }
[CoreImageFilterProperty ("inputShadowAmount")]
float ShadowAmount { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
// incorrect version string for OSX: '10.?' Double-check documentation
[BaseType (typeof (CIFilter))]
interface CIHistogramDisplayFilter {
[CoreImageFilterProperty ("inputHeight")]
float Height { get; set; }
[CoreImageFilterProperty ("inputHighLimit")]
float HighLimit { get; set; }
[CoreImageFilterProperty ("inputLowLimit")]
float LowLimit { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIDistortionFilter))]
interface CIHoleDistortion {
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIHueAdjust {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIHueBlendMode {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIKaleidoscope {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputCount")]
float Count { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CILanczosScaleTransform {
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
[CoreImageFilterProperty ("inputAspectRatio")]
float AspectRatio { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CILenticularHaloGenerator {
[CoreImageFilterProperty ("inputStriationContrast")]
float StriationContrast { get; set; }
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputTime")]
float Time { get; set; }
[CoreImageFilterProperty ("inputHaloRadius")]
float HaloRadius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputHaloOverlap")]
float HaloOverlap { get; set; }
[CoreImageFilterProperty ("inputStriationStrength")]
float StriationStrength { get; set; }
[CoreImageFilterProperty ("inputHaloWidth")]
float HaloWidth { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CILightenBlendMode {
}
[CoreImageFilter]
[iOS (6,0)]
[Mac (10,11)]
[BaseType (typeof (CIFilter))]
interface CILightTunnel {
[CoreImageFilterProperty ("inputRotation")]
float Rotation { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIBlendFilter))]
interface CILinearBurnBlendMode {
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIBlendFilter))]
interface CILinearDodgeBlendMode {
}
[CoreImageFilter (DefaultCtorVisibility = MethodAttributes.Public, StringCtorVisibility = MethodAttributes.Public)]
[BaseType (typeof (CIFilter))]
interface CILinearGradient {
[CoreImageFilterProperty ("inputPoint1")]
CIVector Point1 { get; set; }
[CoreImageFilterProperty ("inputPoint0")]
CIVector Point0 { get; set; }
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,10)]
[BaseType (typeof (CIFilter))]
interface CILinearToSRGBToneCurve {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CILineOverlay {
[CoreImageFilterProperty ("inputNRNoiseLevel")]
float NRNoiseLevel { get; set; }
[CoreImageFilterProperty ("inputNRSharpness")]
float NRSharpness { get; set; }
[CoreImageFilterProperty ("inputEdgeIntensity")]
float EdgeIntensity { get; set; }
[CoreImageFilterProperty ("inputContrast")]
float Contrast { get; set; }
[CoreImageFilterProperty ("inputThreshold")]
float Threshold { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIScreenFilter))]
interface CILineScreen {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CILuminosityBlendMode {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIMaskToAlpha {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIMaximumComponent {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CIMaximumCompositing {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIMedianFilter {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIMinimumComponent {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CIMinimumCompositing {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIModTransition {
[CoreImageFilterProperty ("inputCompression")]
float Compression { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (8,3)]
[BaseType (typeof (CIFilter))]
interface CIMotionBlur {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIMultiplyBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CIMultiplyCompositing {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CINoiseReduction {
[CoreImageFilterProperty ("inputSharpness")]
float Sharpness { get; set; }
[CoreImageFilterProperty ("inputNoiseLevel")]
float NoiseLevel { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CITileFilter))]
interface CIOpTile {
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIOverlayBlendMode {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIPageCurlTransition {
[CoreImageFilterProperty ("inputShadingImage")]
CIImage ShadingImage { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
[CoreImageFilterProperty ("inputBacksideImage")]
CIImage BacksideImage { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIPageCurlWithShadowTransition {
[CoreImageFilterProperty ("inputShadowSize")]
float ShadowSize { get; set; }
// prefixed for API compatibility
[CoreImageFilterProperty ("inputTime")]
float InputTime { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputShadowExtent")]
CIVector ShadowExtent { get; set; }
[CoreImageFilterProperty ("inputShadowAmount")]
float ShadowAmount { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
[CoreImageFilterProperty ("inputTargetImage")]
CIImage TargetImage { get; set; }
[CoreImageFilterProperty ("inputBacksideImage")]
CIImage BacksideImage { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CITileFilter))]
interface CIParallelogramTile {
[CoreImageFilterProperty ("inputAcuteAngle")]
float AcuteAngle { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[Mac (10,11)]
[BaseType (typeof (CICodeGenerator), Name="CIPDF417BarcodeGenerator")]
interface CIPdf417BarcodeGenerator {
[CoreImageFilterProperty ("inputCorrectionLevel")]
int CorrectionLevel { get; set; }
[CoreImageFilterProperty ("inputMinHeight")]
float MinHeight { get; set; }
[CoreImageFilterProperty ("inputAlwaysSpecifyCompaction")]
bool AlwaysSpecifyCompaction { get; set; }
[CoreImageFilterProperty ("inputPreferredAspectRatio")]
float PreferredAspectRatio { get; set; }
[CoreImageFilterProperty ("inputCompactStyle")]
bool CompactStyle { get; set; }
[CoreImageFilterProperty ("inputMaxWidth")]
float MaxWidth { get; set; }
[CoreImageFilterProperty ("inputDataColumns")]
int DataColumns { get; set; }
[CoreImageFilterProperty ("inputCompactionMode")]
int CompactionMode { get; set; }
[CoreImageFilterProperty ("inputMinWidth")]
float MinWidth { get; set; }
[CoreImageFilterProperty ("inputMaxHeight")]
float MaxHeight { get; set; }
[CoreImageFilterProperty ("inputRows")]
int Rows { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIPerspectiveTransform))]
interface CIPerspectiveCorrection {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIPerspectiveTile {
[CoreImageFilterProperty ("inputBottomLeft")]
CIVector BottomLeft { get; set; }
[CoreImageFilterProperty ("inputTopRight")]
CIVector TopRight { get; set; }
[CoreImageFilterProperty ("inputTopLeft")]
CIVector TopLeft { get; set; }
[CoreImageFilterProperty ("inputBottomRight")]
CIVector BottomRight { get; set; }
}
[CoreImageFilter (DefaultCtorVisibility = MethodAttributes.Public, StringCtorVisibility = MethodAttributes.Public)]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIPerspectiveTransform {
[CoreImageFilterProperty ("inputBottomLeft")]
CIVector BottomLeft { get; set; }
[CoreImageFilterProperty ("inputTopRight")]
CIVector TopRight { get; set; }
[CoreImageFilterProperty ("inputTopLeft")]
CIVector TopLeft { get; set; }
[CoreImageFilterProperty ("inputBottomRight")]
CIVector BottomRight { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[Mac (10,11)]
[BaseType (typeof (CIPerspectiveTransform))]
interface CIPerspectiveTransformWithExtent {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter (StringCtorVisibility = MethodAttributes.Public)]
[iOS (7,0)]
[Mac (10,9)]
[Abstract]
[BaseType (typeof (CIFilter))]
interface CIPhotoEffect {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectChrome {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectFade {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectInstant {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectMono {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectNoir {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectProcess {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectTonal {
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIPhotoEffect))]
interface CIPhotoEffectTransfer {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIDistortionFilter))]
interface CIPinchDistortion {
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIBlendFilter))]
interface CIPinLightBlendMode {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIPixellate {
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIPointillize {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CICodeGenerator))]
interface CIQRCodeGenerator {
[CoreImageFilterProperty ("inputCorrectionLevel")]
string CorrectionLevel { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIRadialGradient {
[CoreImageFilterProperty ("inputRadius0")]
float Radius0 { get; set; }
[CoreImageFilterProperty ("inputRadius1")]
float Radius1 { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIRandomGenerator {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CITransitionFilter))]
interface CIRippleTransition {
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
[CoreImageFilterProperty ("inputShadingImage")]
CIImage ShadingImage { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIRowAverage {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CISaturationBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CIScreenBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CISepiaTone {
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIShadedMaterial {
[CoreImageFilterProperty ("inputShadingImage")]
CIImage ShadingImage { get; set; }
[CoreImageFilterProperty ("inputScale")]
float Scale { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CISharpenLuminance {
[CoreImageFilterProperty ("inputSharpness")]
float Sharpness { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CISixfoldReflectedTile {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CISixfoldRotatedTile {
}
[CoreImageFilter]
[iOS (6,0)]
[Mac (10,11)]
[BaseType (typeof (CILinearGradient))]
interface CISmoothLinearGradient {
[CoreImageFilterProperty ("inputPoint1")]
CIVector Point1 { get; set; }
[CoreImageFilterProperty ("inputPoint0")]
CIVector Point0 { get; set; }
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIBlendFilter))]
interface CISoftLightBlendMode {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CISourceAtopCompositing {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CISourceInCompositing {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CISourceOutCompositing {
}
[CoreImageFilter]
[BaseType (typeof (CICompositingFilter))]
interface CISourceOverCompositing {
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CISpotColor {
[CoreImageFilterProperty ("inputReplacementColor3")]
CIColor ReplacementColor3 { get; set; }
[CoreImageFilterProperty ("inputCloseness2")]
float Closeness2 { get; set; }
[CoreImageFilterProperty ("inputCloseness3")]
float Closeness3 { get; set; }
[CoreImageFilterProperty ("inputContrast1")]
float Contrast1 { get; set; }
[CoreImageFilterProperty ("inputContrast3")]
float Contrast3 { get; set; }
[CoreImageFilterProperty ("inputCloseness1")]
float Closeness1 { get; set; }
[CoreImageFilterProperty ("inputContrast2")]
float Contrast2 { get; set; }
[CoreImageFilterProperty ("inputCenterColor3")]
CIColor CenterColor3 { get; set; }
[CoreImageFilterProperty ("inputReplacementColor1")]
CIColor ReplacementColor1 { get; set; }
[CoreImageFilterProperty ("inputCenterColor2")]
CIColor CenterColor2 { get; set; }
[CoreImageFilterProperty ("inputReplacementColor2")]
CIColor ReplacementColor2 { get; set; }
[CoreImageFilterProperty ("inputCenterColor1")]
CIColor CenterColor1 { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CISpotLight {
[CoreImageFilterProperty ("inputBrightness")]
float Brightness { get; set; }
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputLightPosition")]
CIVector LightPosition { get; set; }
[CoreImageFilterProperty ("inputConcentration")]
float Concentration { get; set; }
[CoreImageFilterProperty ("inputLightPointsAt")]
CIVector LightPointsAt { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,10)]
[BaseType (typeof (CIFilter))]
interface CISRGBToneCurveToLinear {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIStarShineGenerator {
[CoreImageFilterProperty ("inputCrossScale")]
float CrossScale { get; set; }
[CoreImageFilterProperty ("inputCrossAngle")]
float CrossAngle { get; set; }
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCrossOpacity")]
float CrossOpacity { get; set; }
[CoreImageFilterProperty ("inputCrossWidth")]
float CrossWidth { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputEpsilon")]
float Epsilon { get; set; }
}
[CoreImageFilter]
[Mac (10,7)]
[BaseType (typeof (CIFilter))]
interface CIStraightenFilter {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIStretchCrop {
[CoreImageFilterProperty ("inputCropAmount")]
float CropAmount { get; set; }
[CoreImageFilterProperty ("inputCenterStretchAmount")]
float CenterStretchAmount { get; set; }
[CoreImageFilterProperty ("inputSize")]
CIVector Size { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIStripesGenerator {
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
[CoreImageFilterProperty ("inputSharpness")]
float Sharpness { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputColor1")]
CIColor Color1 { get; set; }
[CoreImageFilterProperty ("inputColor0")]
CIColor Color0 { get; set; }
}
[CoreImageFilter]
[iOS (8,0)]
[Mac (10,10)]
[BaseType (typeof (CIBlendFilter))]
interface CISubtractBlendMode {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITransitionFilter))]
interface CISwipeTransition {
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
[CoreImageFilterProperty ("inputOpacity")]
float Opacity { get; set; }
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[Mac (10,7)]
[BaseType (typeof (CIFilter))]
interface CITemperatureAndTint {
[CoreImageFilterProperty ("inputTargetNeutral")]
CIVector TargetNeutral { get; set; }
[CoreImageFilterProperty ("inputNeutral")]
CIVector Neutral { get; set; }
}
[CoreImageFilter]
[Mac (10,7)]
[BaseType (typeof (CIFilter))]
interface CIToneCurve {
[CoreImageFilterProperty ("inputPoint0")]
CIVector Point0 { get; set; }
[CoreImageFilterProperty ("inputPoint1")]
CIVector Point1 { get; set; }
[CoreImageFilterProperty ("inputPoint2")]
CIVector Point2 { get; set; }
[CoreImageFilterProperty ("inputPoint3")]
CIVector Point3 { get; set; }
[CoreImageFilterProperty ("inputPoint4")]
CIVector Point4 { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CITorusLensDistortion {
[CoreImageFilterProperty ("inputRefraction")]
float Refraction { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputWidth")]
float Width { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[Mac (10,11)]
[BaseType (typeof (CIFilter))]
interface CITriangleKaleidoscope {
[CoreImageFilterProperty ("inputRotation")]
float Rotation { get; set; }
[CoreImageFilterProperty ("inputSize")]
float Size { get; set; }
[CoreImageFilterProperty ("inputPoint")]
CIVector Point { get; set; }
[CoreImageFilterProperty ("inputDecay")]
float Decay { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CITileFilter))]
interface CITriangleTile {
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CITileFilter))]
interface CITwelvefoldReflectedTile {
}
[CoreImageFilter]
[BaseType (typeof (CIDistortionFilter))]
interface CITwirlDistortion {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIFilter))]
interface CIUnsharpMask {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[Mac (10,7)]
[BaseType (typeof (CIFilter))]
interface CIVibrance {
[CoreImageFilterProperty ("inputAmount")]
float Amount { get; set; }
}
[CoreImageFilter]
[Mac (10,9)]
[BaseType (typeof (CIFilter))]
interface CIVignette {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[iOS (7,0)]
[Mac (10,9)]
[BaseType (typeof (CIFilter))]
interface CIVignetteEffect {
[CoreImageFilterProperty ("inputFalloff")]
float Falloff { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputIntensity")]
float Intensity { get; set; }
}
[CoreImageFilter]
[iOS (6,0)]
[BaseType (typeof (CIDistortionFilter))]
interface CIVortexDistortion {
[CoreImageFilterProperty ("inputAngle")]
float Angle { get; set; }
}
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIWhitePointAdjust {
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
}
[CoreImageFilter]
[iOS (8,3)]
[BaseType (typeof (CIFilter))]
interface CIZoomBlur {
[CoreImageFilterProperty ("inputAmount")]
float Amount { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CIDepthOfField {
[CoreImageFilterProperty ("inputUnsharpMaskIntensity")]
float UnsharpMaskIntensity { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
// renamed 1 vs 0 for API compatibility
[CoreImageFilterProperty ("inputPoint0")]
CIVector Point1 { get; set; }
// renamed 2 vs 1 for API compatibility
[CoreImageFilterProperty ("inputPoint1")]
CIVector Point2 { get; set; }
[CoreImageFilterProperty ("inputUnsharpMaskRadius")]
float UnsharpMaskRadius { get; set; }
[CoreImageFilterProperty ("inputSaturation")]
float Saturation { get; set; }
}
[CoreImageFilter]
[iOS (9,0)]
[BaseType (typeof (CIFilter))]
interface CISunbeamsGenerator {
[CoreImageFilterProperty ("inputStriationContrast")]
float StriationContrast { get; set; }
[CoreImageFilterProperty ("inputColor")]
CIColor Color { get; set; }
[CoreImageFilterProperty ("inputTime")]
float Time { get; set; }
[CoreImageFilterProperty ("inputMaxStriationRadius")]
float MaxStriationRadius { get; set; }
[CoreImageFilterProperty ("inputCenter")]
CIVector Center { get; set; }
[CoreImageFilterProperty ("inputSunRadius")]
float SunRadius { get; set; }
[CoreImageFilterProperty ("inputStriationStrength")]
float StriationStrength { get; set; }
#if !XAMCORE_3_0
// binding mistake - it should never been added
[CoreImageFilterProperty ("inputCropAmount")]
float CropAmount { get; set; }
#endif
}
[CoreImageFilter (DefaultCtorVisibility = MethodAttributes.PrivateScope)]
[BaseType (typeof (CIFilter))]
interface CIFaceBalance {
}
[iOS (9,3)]
[TV (9,2)]
[Availability (Introduced = Platform.Mac_10_10, Obsoleted = Platform.Mac_10_11)] // FIXME: Is htis actually deprecated? Seems to be missing in El Capitan
[CoreImageFilter]
[BaseType (typeof (CIFilter))]
interface CIMaskedVariableBlur {
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
}
[CoreImageFilter]
[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
[BaseType (typeof (CIFilter))]
interface CIClamp {
[CoreImageFilterProperty ("inputExtent")]
CIVector Extent { get; set; }
}
[CoreImageFilter]
[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
[BaseType (typeof (CIFilter))]
interface CIHueSaturationValueGradient {
[CoreImageFilterProperty ("inputColorSpace")]
CGColorSpace ColorSpace { get; set; }
[CoreImageFilterProperty ("inputDither")]
float Dither { get; set; }
[CoreImageFilterProperty ("inputValue")]
float Value { get; set; }
[CoreImageFilterProperty ("inputRadius")]
float Radius { get; set; }
[CoreImageFilterProperty ("inputSoftness")]
float Softness { get; set; }
}
[CoreImageFilter]
[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
[BaseType (typeof (CIFilter))]
interface CINinePartStretched {
[CoreImageFilterProperty ("inputGrowAmount")]
CIVector GrowAmount { get; set; }
[CoreImageFilterProperty ("inputBreakpoint0")]
CIVector Breakpoint0 { get; set; }
[CoreImageFilterProperty ("inputBreakpoint1")]
CIVector Breakpoint1 { get; set; }
}
[CoreImageFilter]
[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
[BaseType (typeof (CIFilter))]
interface CINinePartTiled {
[CoreImageFilterProperty ("inputGrowAmount")]
CIVector GrowAmount { get; set; }
[CoreImageFilterProperty ("inputBreakpoint0")]
CIVector Breakpoint0 { get; set; }
[CoreImageFilterProperty ("inputFlipYTiles")]
bool FlipYTiles { get; set; }
[CoreImageFilterProperty ("inputBreakpoint1")]
CIVector Breakpoint1 { get; set; }
}
[CoreImageFilter]
[iOS (10,0)]
[Mac (10,12)] // filter says 10.11 but it fails when I run it on El Capitan
[TV (10,0)]
[BaseType (typeof (CIFilter))]
interface CIThermal {
}
[CoreImageFilter]
[iOS (10,0)]
[Mac (10,12)] // filter says 10.11 but it fails when I run it on El Capitan
[TV (10,0)]
[BaseType (typeof (CIFilter))]
interface CIXRay {
}
}