I have these 3 lines. The middle one, I don’t know how to convert:
Source Obj-C
CGContextRef ctx = UIGraphicsGetCurrentContext();
[[UIColor blackColor] set];
CGContextFillRect(ctx, screenRect);
Destination C#
CGContext ctx = UIGraphics.GetCurrentContext ();
// ??? [[UIColor blackColor] set]; ???
ctx.FillRect (screenRect);
From some googling, it seems like it’d be something like:
If that doesn’t work, then
-setis the equivalent of-setFilland-setStroke, so this should probably work:See also:
UIColordocumentation on docs.go-mono.com