| Home 目次>ApplicationKit>NSBezierPath | |
appendBezierPathWithRect:
ベジエパスに矩形のパスを追加します
-(void) appendBezierPathWithRect:(NSRect)aRect
【返り値】 | |
| void | なし |
| 【パラメータ】 | |
| aRect |
【解説】
ベジエパスに矩形のパス(aRect)を追加します。
パスは起点から始まって反時計回りで描画されます。closePathになります。
【例文】
-(void)drawRect:(NSRect)rect
{
NSBezierPath *thePath = [NSBezierPath bezierPath];
[thePath moveToPoint:NSMakePoint(20,20)];
[thePath lineToPoint:NSMakePoint(120,120)];
[thePath appendBezierPathWithRect:NSMakeRect(50,50,100,100)];
[[NSColor redColor] set];
[thePath stroke];
}
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSBezierPath | 修正日2006.12.26 |