settingAlphaOne(in:)
Returns a new image created by setting all alpha values to 1.0 within the specified rectangle and to 0.0 outside of that area.
Declaration
func settingAlphaOne(in extent: CGRect) -> CIImageParameters
- extent:
The rectangular area in the image to be set to full opacity.
Return Value
An image object representing the result of the operation.
See Also
Creating an Image by Modifying an Existing Image
applyingFilter(_:parameters:)applyingFilter(_:)transformed(by:)transformed(by:highQualityDownsample:)cropped(to:)oriented(forExifOrientation:)clampedToExtent()clamped(to:)composited(over:)convertingWorkingSpaceToLab()convertingLabToWorkingSpace()matchedToWorkingSpace(from:)matchedFromWorkingSpace(to:)premultiplyingAlpha()unpremultiplyingAlpha()