Ok it works, this is what I did:
CGContextBeginPath(ctx);
... /.//create the outter
...
CGContextClosePath(ctx);
...
... //Create the inner path
CGContextClosePath(ctx);
CGContextSetFillColorWithColor(ctx, CGColorCreateGenericRGB(0.5f, 0.5f, 0.5f,
0.5f));
CGContextEOFillPath(ctx);
//Rec
Hello David..
Ok I added the CGContextClosePath instead of the CGContextAddLine of the first
rect, and the path closes, but the internal doesn't, so I remove the
CGContextAddLine of the second rect and place the CGContextClosePath I had at
the bottom instead, and both rects close great. I the
On Feb 22, 2010, at 1:53 PM, Gustavo Pizano wrote:
> Hello all.
>
> I want to be able to fill the area between 2 rects that Im building as
> following:
>
> Sot both rounded rects are being display, dont ask me but for some reason the
> lines didn't want to go to the end on the lines //???#1
Hello all.
I want to be able to fill the area between 2 rects that Im building as
following:
-(void)createPath:(CGContextRef)ctx withInnerRect:(NSRect) rect{
NSRect outterFrame = [self bounds];
CGContextBeginPath(ctx);
//Outtter Line
CGContextMoveToPoint(ctx, NSM