Bewerken

Delen via


CGContext.SetFillPattern(CGPattern, nfloat[]) Method

Definition

Sets the fill pattern of the context.

public void SetFillPattern (CoreGraphics.CGPattern pattern, nfloat[] components);
member this.SetFillPattern : 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 SetFillColorSpace(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 fill pattern colorspace, plus an alpha component. If the pattern is colored, components should contain a single value, specifying the opacity.

Applies to