【发布时间】:2012-07-26 02:20:10
【问题描述】:
我正在使用 CGContext 绘制线条,但我想让它的边缘模糊。我检查了阴影,但在阴影中,线条的边缘并不柔软和光滑。请告诉我如何使线条边缘模糊。
【问题讨论】:
我正在使用 CGContext 绘制线条,但我想让它的边缘模糊。我检查了阴影,但在阴影中,线条的边缘并不柔软和光滑。请告诉我如何使线条边缘模糊。
【问题讨论】:
我不完全确定你所说的模糊线条的“边缘”是什么意思,但你可以尝试先用更大的线宽绘制相同的路径,然后用逐渐变细和变暗的线来绘制路径。
【讨论】:
绘制线的其他方式..我希望这有助于绘制线并增加线宽...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//// DRAW LINE....
UIView *lineView = [[[UIView alloc] initWithFrame:CGRectMake(10, 30, cell.contentView.bounds.size.width, 3)] autorelease];
//Replece the 3 and put the 5 for Increse the line Width
lineView.backgroundColor = [UIColor redColor];
lineView.autoresizingMask = 0x5f;
[cell.contentView addSubview:lineView];
}
【讨论】: