public unsafe void ShowCGGlyphs ( short[] /* const CGGlyph* = CGFontIndex* = unsigned short* */ glyphs, CGPoint[] /* const CGPoint* */ positions, nuint /* NSUInteger */ glyphCount, UIFont font, CGAffineTransform textMatrix, NSDictionary attributes, CGContext graphicsContext) { fixed (short* gl = glyphs) { fixed (CGPoint* pos = positions) { ShowCGGlyphsInternal ((IntPtr) gl, (IntPtr) pos, glyphCount, font, textMatrix, attributes, graphicsContext); } } }
public void Draw(CGContext ctx) { if (ctx == null) throw new ArgumentNullException ("ctx"); CTFrameDraw (handle, ctx.Handle); }
static void DrawCallback (IntPtr voidptr, IntPtr cgcontextptr) { GCHandle gch = GCHandle.FromIntPtr (voidptr); DrawPattern draw_pattern = (DrawPattern) gch.Target; using (var ctx = new CGContext (cgcontextptr)) draw_pattern (ctx); }
public static void PushContext(CGContext ctx) { UIGraphicsPushContext (ctx.Handle); }
public static NSGraphicsContext FromGraphicsPort(CGContext context, bool initialFlippedState) { if (context == null) throw new ArgumentNullException ("context"); return FromGraphicsPort (context.Handle, initialFlippedState); }
public static CGLayer Create (CGContext context, CGSize size) { // note: auxiliaryInfo is reserved and should be null return new CGLayer (CGLayerCreateWithContext (context == null ? IntPtr.Zero : context.Handle, size, IntPtr.Zero), true); }
public static CIContext FromContext(CGContext ctx) { return FromContext (ctx, (CIContextOptions) null); }
public static CIContext FromContext(CGContext ctx, CIContextOptions options) { return FromContext (ctx, options?.Dictionary); }
public static CIContext FromContext(CGContext ctx, CIContextOptions options) { NSDictionary dict = options == null ? null : options.Dictionary; return FromContext (ctx, dict); }
public CGRect GetImageBounds(CGContext context) { return CTLineGetImageBounds (handle, context.GetHandle ()); }
public void Draw(CGContext context) { if (context == null) throw new ArgumentNullException ("context"); CTLineDraw (handle, context.Handle); }