image(for:)
Provides an image asynchronously that contains the given subjects with the background removed.
Declaration
@MainActor final func image(for subjects: Set<ImageAnalysisOverlayView.Subject>) async throws -> NSImageParameters
- subjects:
An array of subjects to include in the image.
Discussion
If one or more subjects fail to produce an image, the method throws ImageAnalysisOverlayView.SubjectUnavailable.imageUnavailable.