ICIStretchCropProtocol Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This interface represents the Objective-C protocol CIStretchCrop.
[Foundation.Protocol(Name="CIStretchCrop", WrapperType=typeof(CoreImage.CIStretchCropProtocolWrapper))]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="inputImage", IsProperty=true, IsRequired=true, IsStatic=false, Name="InputImage", PropertyType=typeof(CoreImage.CIImage), Selector="inputImage", SetterSelector="setInputImage:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="size", IsProperty=true, IsRequired=true, IsStatic=false, Name="InputSize", PropertyType=typeof(CoreGraphics.CGPoint), Selector="size", SetterSelector="setSize:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="cropAmount", IsProperty=true, IsRequired=true, IsStatic=false, Name="CropAmount", PropertyType=typeof(System.Single), Selector="cropAmount", SetterSelector="setCropAmount:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="centerStretchAmount", IsProperty=true, IsRequired=true, IsStatic=false, Name="CenterStretchAmount", PropertyType=typeof(System.Single), Selector="centerStretchAmount", SetterSelector="setCenterStretchAmount:")]
public interface ICIStretchCropProtocol : CoreImage.ICIFilterProtocol, IDisposable
[<Foundation.Protocol(Name="CIStretchCrop", WrapperType=typeof(CoreImage.CIStretchCropProtocolWrapper))>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="inputImage", IsProperty=true, IsRequired=true, IsStatic=false, Name="InputImage", PropertyType=typeof(CoreImage.CIImage), Selector="inputImage", SetterSelector="setInputImage:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="size", IsProperty=true, IsRequired=true, IsStatic=false, Name="InputSize", PropertyType=typeof(CoreGraphics.CGPoint), Selector="size", SetterSelector="setSize:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="cropAmount", IsProperty=true, IsRequired=true, IsStatic=false, Name="CropAmount", PropertyType=typeof(System.Single), Selector="cropAmount", SetterSelector="setCropAmount:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="centerStretchAmount", IsProperty=true, IsRequired=true, IsStatic=false, Name="CenterStretchAmount", PropertyType=typeof(System.Single), Selector="centerStretchAmount", SetterSelector="setCenterStretchAmount:")>]
type ICIStretchCropProtocol = interface
interface INativeObject
interface IDisposable
interface ICIFilterProtocol
- Derived
- Attributes
- Implements
Remarks
A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.
A class may also implement members from this interface to implement members from the protocol.
Properties
| Name | Description |
|---|---|
| CenterStretchAmount |
Gets or sets a value that controls by how much more to stretch the center of the image, with a value of 0 indicating uniform stretching with no distortion. |
| CropAmount |
Gets or sets a value that controls the ratio of stretching to cropping. 0 causes the image to be stretched so that no cropping is necessary. 1 causes the image to be cropped so that no stretching is necessary. Intermediate values combine these effects. |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
| InputImage |
Gets or sets an image to filter. |
| InputSize |
Gets or sets the size of the output image in pixels. |
| OutputImage | (Inherited from ICIFilterProtocol) |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |