Contents

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) -> CIImage

Parameters

  • 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