Function getOutputImage

Get the output image from the CIFilter

const nativeFilter = await createCIFilter("CIColorMonochrome")
const outputImageRes = await outputImage(nativeFilter)
  • Parameters

    • nativeFilter: SharedRef<"CIFilter">

      The native filter to get the output image from

    • OptionalcropToInputImage: boolean

      (Optional) Whether to crop the output image to the input image. This is useful when the resulting flter generates an image that's larger than the input image. Default: false.

    Returns SharedRef<"UIImageOutput", Record<never, never>>

    The output image