Table of Contents

Struct CoreGraphics.CGContextRef

Namespace
Xui.Runtime.IOS
Assembly
Xui.Runtime.IOS.dll
public ref struct CoreGraphics.CGContextRef
Inherited Members

Constructors

CGContextRef(nint)

public CGContextRef(nint self)

Parameters

self nint

Fields

Self

public readonly nint Self

Field Value

nint

Properties

Alpha

public NFloat Alpha { set; }

Property Value

NFloat

CTM

public CoreGraphics.CGAffineTransform CTM { get; }

Property Value

CoreGraphics.CGAffineTransform

LineCap

public CoreGraphics.CGLineCap LineCap { set; }

Property Value

CoreGraphics.CGLineCap

LineJoin

public CoreGraphics.CGLineJoin LineJoin { set; }

Property Value

CoreGraphics.CGLineJoin

Transform

public CoreGraphics.CGAffineTransform Transform { get; }

Property Value

CoreGraphics.CGAffineTransform

Methods

AddArc(NFloat, NFloat, NFloat, NFloat, NFloat, bool)

public void AddArc(NFloat x, NFloat y, NFloat radius, NFloat startAngle, NFloat endAngle, bool clockwise)

Parameters

x NFloat
y NFloat
radius NFloat
startAngle NFloat
endAngle NFloat
clockwise bool

AddArcToPoint(NFloat, NFloat, NFloat, NFloat, NFloat)

public void AddArcToPoint(NFloat x1, NFloat y1, NFloat x2, NFloat y2, NFloat radius)

Parameters

x1 NFloat
y1 NFloat
x2 NFloat
y2 NFloat
radius NFloat

AddPath(CGPathRef)

public void AddPath(CoreGraphics.CGPathRef path)

Parameters

path CoreGraphics.CGPathRef

AddRect(CGRect)

public void AddRect(CoreGraphics.CGRect rect)

Parameters

rect CoreGraphics.CGRect

BeginPath()

public void BeginPath()

CGContextAddArc(nint, NFloat, NFloat, NFloat, NFloat, NFloat, int)

public static extern void CGContextAddArc(nint cgContextRef, NFloat x, NFloat y, NFloat radius, NFloat startAngle, NFloat endAngle, int clockwise)

Parameters

cgContextRef nint
x NFloat
y NFloat
radius NFloat
startAngle NFloat
endAngle NFloat
clockwise int

CGContextAddArcToPoint(nint, NFloat, NFloat, NFloat, NFloat, NFloat)

public static extern void CGContextAddArcToPoint(nint cgContextRef, NFloat x1, NFloat y1, NFloat x2, NFloat y2, NFloat radius)

Parameters

cgContextRef nint
x1 NFloat
y1 NFloat
x2 NFloat
y2 NFloat
radius NFloat

CGContextAddCurveToPoint(nint, NFloat, NFloat, NFloat, NFloat, NFloat, NFloat)

public static extern void CGContextAddCurveToPoint(nint c, NFloat cp1x, NFloat cp1y, NFloat cp2x, NFloat cp2y, NFloat x, NFloat y)

Parameters

c nint
cp1x NFloat
cp1y NFloat
cp2x NFloat
cp2y NFloat
x NFloat
y NFloat

CGContextAddCurveToPoint(NFloat, NFloat, NFloat, NFloat, NFloat, NFloat)

public void CGContextAddCurveToPoint(NFloat cp1x, NFloat cp1y, NFloat cp2x, NFloat cp2y, NFloat x, NFloat y)

Parameters

cp1x NFloat
cp1y NFloat
cp2x NFloat
cp2y NFloat
x NFloat
y NFloat

CGContextAddLineToPoint(nint, NFloat, NFloat)

public static extern void CGContextAddLineToPoint(nint cgContextRef, NFloat x, NFloat y)

Parameters

cgContextRef nint
x NFloat
y NFloat

CGContextAddPath(nint, nint)

public static extern void CGContextAddPath(nint cgContextRef, nint cgPathRef)

Parameters

cgContextRef nint
cgPathRef nint

CGContextAddQuadCurveToPoint(nint, NFloat, NFloat, NFloat, NFloat)

public static extern void CGContextAddQuadCurveToPoint(nint c, NFloat cpx, NFloat cpy, NFloat x, NFloat y)

Parameters

c nint
cpx NFloat
cpy NFloat
x NFloat
y NFloat

CGContextAddQuadCurveToPoint(NFloat, NFloat, NFloat, NFloat)

public void CGContextAddQuadCurveToPoint(NFloat cpx, NFloat cpy, NFloat x, NFloat y)

Parameters

cpx NFloat
cpy NFloat
x NFloat
y NFloat

CGContextAddRect(nint, CGRect)

public static extern void CGContextAddRect(nint cgContextRef, CoreGraphics.CGRect cgRect)

Parameters

cgContextRef nint
cgRect CoreGraphics.CGRect

CGContextBeginPath(nint)

public static extern void CGContextBeginPath(nint cgContextRef)

Parameters

cgContextRef nint

CGContextClip(nint)

public static extern void CGContextClip(nint cgContextRef)

Parameters

cgContextRef nint

CGContextClipToRect(nint, CGRect)

public static extern void CGContextClipToRect(nint c, CoreGraphics.CGRect rect)

Parameters

c nint
rect CoreGraphics.CGRect

CGContextClosePath(nint)

public static extern void CGContextClosePath(nint cgContextRef)

Parameters

cgContextRef nint

CGContextConcatCTM(nint, CGAffineTransform)

public static extern void CGContextConcatCTM(nint cgContextRef, CoreGraphics.CGAffineTransform transform)

Parameters

cgContextRef nint
transform CoreGraphics.CGAffineTransform

CGContextDrawLinearGradient(nint, nint, CGPoint, CGPoint, uint)

public static extern void CGContextDrawLinearGradient(nint cgContextRef, nint cgGradientRef, CoreGraphics.CGPoint startPoint, CoreGraphics.CGPoint endPoint, uint options = 3)

Parameters

cgContextRef nint
cgGradientRef nint
startPoint CoreGraphics.CGPoint
endPoint CoreGraphics.CGPoint
options uint

CGContextDrawRadialGradient(nint, nint, CGPoint, NFloat, CGPoint, NFloat, uint)

public static extern void CGContextDrawRadialGradient(nint cgContextRef, nint cgGradientRef, CoreGraphics.CGPoint startCenter, NFloat startRadius, CoreGraphics.CGPoint endCenter, NFloat endRadius, uint options = 3)

Parameters

cgContextRef nint
cgGradientRef nint
startCenter CoreGraphics.CGPoint
startRadius NFloat
endCenter CoreGraphics.CGPoint
endRadius NFloat
options uint

CGContextEOClip(nint)

public static extern void CGContextEOClip(nint cgContextRef)

Parameters

cgContextRef nint

CGContextEOFillPath(nint)

public static extern void CGContextEOFillPath(nint cgContextRef)

Parameters

cgContextRef nint

CGContextFillPath(nint)

public static extern void CGContextFillPath(nint cgContextRef)

Parameters

cgContextRef nint

CGContextFillRect(nint, CGRect)

public static extern void CGContextFillRect(nint cgContextRef, CoreGraphics.CGRect rect)

Parameters

cgContextRef nint
rect CoreGraphics.CGRect

CGContextGetCTM(nint)

public static extern CoreGraphics.CGAffineTransform CGContextGetCTM(nint cgContextRef)

Parameters

cgContextRef nint

Returns

CoreGraphics.CGAffineTransform

CGContextMoveToPoint(nint, NFloat, NFloat)

public static extern void CGContextMoveToPoint(nint cgContextRef, NFloat x, NFloat y)

Parameters

cgContextRef nint
x NFloat
y NFloat

CGContextRelease(nint)

public static extern void CGContextRelease(nint self)

Parameters

self nint

CGContextReplacePathWithStrokedPath(nint)

public static extern void CGContextReplacePathWithStrokedPath(nint cgContextRef)

Parameters

cgContextRef nint

CGContextRestoreGState(nint)

public static extern void CGContextRestoreGState(nint cgContextRef)

Parameters

cgContextRef nint

CGContextRotateCTM(nint, NFloat)

public static extern void CGContextRotateCTM(nint cgContextRef, NFloat angle)

Parameters

cgContextRef nint
angle NFloat

CGContextSaveGState(nint)

public static extern void CGContextSaveGState(nint cgContextRef)

Parameters

cgContextRef nint

CGContextScaleCTM(nint, NFloat, NFloat)

public static extern void CGContextScaleCTM(nint cgContextRef, NFloat sx, NFloat sy)

Parameters

cgContextRef nint
sx NFloat
sy NFloat

CGContextSetAlpha(nint, NFloat)

public static extern void CGContextSetAlpha(nint cgContextRef, NFloat alpha)

Parameters

cgContextRef nint
alpha NFloat

CGContextSetLineCap(nint, CGLineCap)

public static extern void CGContextSetLineCap(nint cgContextRef, CoreGraphics.CGLineCap cap)

Parameters

cgContextRef nint
cap CoreGraphics.CGLineCap

CGContextSetLineDash(nint, NFloat, nint, nint)

public static extern void CGContextSetLineDash(nint c, NFloat phase, nint cgFloatArrPtr, nint count)

Parameters

c nint
phase NFloat
cgFloatArrPtr nint
count nint

CGContextSetLineDash(nint, NFloat, ref NFloat, nint)

public static void CGContextSetLineDash(nint c, NFloat phase, ref NFloat cgFloatArrPtr, nint count)

Parameters

c nint
phase NFloat
cgFloatArrPtr NFloat
count nint

CGContextSetLineJoin(nint, CGLineJoin)

public static extern void CGContextSetLineJoin(nint cgContextRef, CoreGraphics.CGLineJoin join)

Parameters

cgContextRef nint
join CoreGraphics.CGLineJoin

CGContextSetLineWidth(nint, NFloat)

public static extern void CGContextSetLineWidth(nint cgContextRef, NFloat width)

Parameters

cgContextRef nint
width NFloat

CGContextSetMiterLimit(nint, NFloat)

public static extern void CGContextSetMiterLimit(nint cgContextRef, NFloat limit)

Parameters

cgContextRef nint
limit NFloat

CGContextSetRGBFillColor(nint, NFloat, NFloat, NFloat, NFloat)

public static extern void CGContextSetRGBFillColor(nint cgContextRef, NFloat red, NFloat green, NFloat blue, NFloat alpha)

Parameters

cgContextRef nint
red NFloat
green NFloat
blue NFloat
alpha NFloat

CGContextSetRGBStrokeColor(nint, NFloat, NFloat, NFloat, NFloat)

public static extern void CGContextSetRGBStrokeColor(nint cgContextRef, NFloat red, NFloat green, NFloat blue, NFloat alpha)

Parameters

cgContextRef nint
red NFloat
green NFloat
blue NFloat
alpha NFloat

CGContextSetTextDrawingMode(nint, CGTextDrawingMode)

public static extern void CGContextSetTextDrawingMode(nint cgContextRef, CoreGraphics.CGTextDrawingMode mode)

Parameters

cgContextRef nint
mode CoreGraphics.CGTextDrawingMode

CGContextStrokePath(nint)

public static extern void CGContextStrokePath(nint cgContextRef)

Parameters

cgContextRef nint

CGContextStrokeRect(nint, CGRect)

public static extern void CGContextStrokeRect(nint cgContextRef, CoreGraphics.CGRect rect)

Parameters

cgContextRef nint
rect CoreGraphics.CGRect

CGContextTranslateCTM(nint, NFloat, NFloat)

public static extern void CGContextTranslateCTM(nint cgContextRef, NFloat tx, NFloat ty)

Parameters

cgContextRef nint
tx NFloat
ty NFloat

Clip()

public void Clip()

ClosePath()

public void ClosePath()

ConcatCTM(CGAffineTransform)

public void ConcatCTM(CoreGraphics.CGAffineTransform transform)

Parameters

transform CoreGraphics.CGAffineTransform

Dispose()

public void Dispose()

DrawLinearGradient(CGGradientRef, CGPoint, CGPoint)

public void DrawLinearGradient(CoreGraphics.CGGradientRef gradient, CoreGraphics.CGPoint startPoint, CoreGraphics.CGPoint endPoint)

Parameters

gradient CoreGraphics.CGGradientRef
startPoint CoreGraphics.CGPoint
endPoint CoreGraphics.CGPoint

DrawRadialGradient(CGGradientRef, CGPoint, NFloat, CGPoint, NFloat)

public void DrawRadialGradient(CoreGraphics.CGGradientRef gradient, CoreGraphics.CGPoint startCenter, NFloat startRadius, CoreGraphics.CGPoint endCenter, NFloat endRadius)

Parameters

gradient CoreGraphics.CGGradientRef
startCenter CoreGraphics.CGPoint
startRadius NFloat
endCenter CoreGraphics.CGPoint
endRadius NFloat

EOClip()

public void EOClip()

EOFillPath()

public void EOFillPath()

FillPath()

public void FillPath()

FillRect(CGRect)

public void FillRect(CoreGraphics.CGRect rect)

Parameters

rect CoreGraphics.CGRect

LineToPoint(NFloat, NFloat)

public void LineToPoint(NFloat x, NFloat y)

Parameters

x NFloat
y NFloat

MoveToPoint(NFloat, NFloat)

public void MoveToPoint(NFloat x, NFloat y)

Parameters

x NFloat
y NFloat

ReplacePathWithStrokedPath()

public void ReplacePathWithStrokedPath()

RestoreGState()

public void RestoreGState()

RotateCTM(NFloat)

public void RotateCTM(NFloat angle)

Parameters

angle NFloat

SaveGState()

public void SaveGState()

ScaleCTM(NFloat, NFloat)

public void ScaleCTM(NFloat sx, NFloat sy)

Parameters

sx NFloat
sy NFloat

SetLineWidth(NFloat)

public void SetLineWidth(NFloat width)

Parameters

width NFloat

SetMiterLimit(NFloat)

public void SetMiterLimit(NFloat limit)

Parameters

limit NFloat

SetRGBFillColor(NFloat, NFloat, NFloat, NFloat)

public void SetRGBFillColor(NFloat red, NFloat green, NFloat blue, NFloat alpha)

Parameters

red NFloat
green NFloat
blue NFloat
alpha NFloat

SetRGBStrokeColor(NFloat, NFloat, NFloat, NFloat)

public void SetRGBStrokeColor(NFloat red, NFloat green, NFloat blue, NFloat alpha)

Parameters

red NFloat
green NFloat
blue NFloat
alpha NFloat

StrokePath()

public void StrokePath()

StrokeRect(CGRect)

public void StrokeRect(CoreGraphics.CGRect rect)

Parameters

rect CoreGraphics.CGRect

TranslateCTM(NFloat, NFloat)

public void TranslateCTM(NFloat tx, NFloat ty)

Parameters

tx NFloat
ty NFloat

UIGraphicsGetCurrentContext()

public static extern nint UIGraphicsGetCurrentContext()

Returns

nint

Operators

implicit operator nint(CGContextRef)

public static implicit operator nint(CoreGraphics.CGContextRef path)

Parameters

path CoreGraphics.CGContextRef

Returns

nint