Instance Method
flattenOutlinesRemoveOverlap(_:origHints:supporting:secondaryPath:extraHandles:) flattenOutlinesRemoveOverlap:origHints:supporting:secondaryPath:extraHandles:error: flattenOutlinesRemoveOverlap_origHints_supporting_secondaryPath_extraHandles_error_
Replaces the layer contents with flattened path outlines for a drawing feature set.
Declaration
func flattenOutlinesRemoveOverlap(_ removeOverlap: Bool, origHints: [GSHint]?, supporting supportedFeatures: GSDrawStackFeature, secondaryPath: NSBezierPath?, extraHandles: NSMutableArray?) throwsDeclaration
- (BOOL) flattenOutlinesRemoveOverlap:(BOOL) removeOverlap origHints:(NSArray<GSHint *> *) origHints supporting:(GSDrawStackFeature) supportedFeatures secondaryPath:(NSBezierPath *) secondaryPath extraHandles:(NSMutableArray *) extraHandles error:(NSError **) error;Declaration
flattenOutlinesRemoveOverlap_origHints_supporting_secondaryPath_extraHandles_error_(removeOverlap: bool, origHints: list[GSHint], supportedFeatures: GSDrawStackFeature, secondaryPath: NSBezierPath, extraHandles: list) -> tuple[bool, NSError]Parameters
removeOverlapWhether to remove overlaps from outlines of moderate complexity.
origHintsOriginal hints that receive updated corner representation data.
supportedFeaturesShape composition features that may remain in the flattened result.
secondaryPathA path to which the original path outlines are appended.
extraHandlesA collection to which handles produced while flattening are appended.
Parameters
removeOverlapWhether to remove overlaps from outlines of moderate complexity.
origHintsOriginal hints that receive updated corner representation data.
supportedFeaturesShape composition features that may remain in the flattened result.
secondaryPathA path to which the original path outlines are appended.
extraHandlesA collection to which handles produced while flattening are appended.
errorOn output, a pointer to an error object that describes why the method failed, or
nilif no error occurred. If you are not interested in the error information, passnilfor this parameter.
Discussion
Components, stroke paint, masks, and other unsupported shape composition are resolved into paths.
Return Value
Whether the outlines were flattened successfully.
Discussion
Components, stroke paint, masks, and other unsupported shape composition are resolved into paths.
See Also
Flattening Outlines
Replaces the layer contents with their flattened path outlines and removes overlaps.
Replaces the layer contents with their flattened path outlines.