편집

다음을 통해 공유


CIImage.CreateBySettingAlphaOne(CGRect) Method

Definition

Creates a new image by copying this, setting the alpha of pixels within extent to 1.0 and setting those outside to 0.0.

[Foundation.Export("imageBySettingAlphaOneInExtent:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreImage.CIImage CreateBySettingAlphaOne (CoreGraphics.CGRect extent);
abstract member CreateBySettingAlphaOne : CoreGraphics.CGRect -> CoreImage.CIImage
override this.CreateBySettingAlphaOne : CoreGraphics.CGRect -> CoreImage.CIImage

Parameters

extent
CGRect

The area within the image to have alpha 1.0.

Returns

Attributes

Applies to