共用方式為


CGContext.DrawLinearGradient 方法

定義

public void DrawLinearGradient (CoreGraphics.CGGradient gradient, CoreGraphics.CGPoint startPoint, CoreGraphics.CGPoint endPoint, CoreGraphics.CGGradientDrawingOptions options);
member this.DrawLinearGradient : CoreGraphics.CGGradient * CoreGraphics.CGPoint * CoreGraphics.CGPoint * CoreGraphics.CGGradientDrawingOptions -> unit

參數

gradient
CGGradient
startPoint
CGPoint
endPoint
CGPoint

適用於