Vector images?
Terence Heaford
t.heaford at icloud.com
Wed Oct 21 10:53:03 EDT 2015
> On 21 Oct 2015, at 10:28, Mark Waddingham <mark at livecode.com> wrote:
>
> It is very similar to CoreGraphics (but actually has a number of features beyond which CG offers). e.g.
> MCGContextCreate(-> myContext)
> MCGContextSetRGBAFillColor(myContext, 1, 0, 0, 0.5)
> MCGContextAddRectangle(myContext, [0, 0, 400, 400])
> MCGContextFill(myContext)
Does this not do it? or similar?
-(void) drawRect: (CGRect) rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
UIColor * redColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.0];
CGContextSetFillColorWithColor(context, redColor.CGColor);
CGContextFillRect(context, self.bounds);
}
All the best
Terry
More information about the use-livecode
mailing list