CGContext.SetStrokePattern(CGPattern, nfloat[]) Method

Definition

Sets the stroke pattern of the context.

public void SetStrokePattern (CoreGraphics.CGPattern pattern, nfloat[] components);
member this.SetStrokePattern : CoreGraphics.CGPattern * nfloat[] -> unit

Parameters

pattern
CGPattern

The desired CGPattern.

components
nfloat[]

Color components used if the pattern is a masking pattern. Otherwise, a single alpha value.

Remarks

Must be used after SetStrokeColorSpace(CGColorSpace) has been set to Pattern. If the pattern is an uncolored masking pattern, the components must correspond to those in the base of the stroke pattern colorspace, plus an alpha component. If the pattern is colored, components should contain a single value, specifying the opacity.

Applies to