开发者

How change a CGContext attribute after drawRect is carried out

I draw a path using CGContext.

How can I later change one of the path attributes aft开发者_运维知识库er drawRect was carried out (completed)? I want to be able to change the color of my path according to a slider value.


defined the property and added [setNeedsDisplay] during property change did the deed ...


To set color use this function

CGContextSetRGBFillColor(context, RED, GREEN, BLUE, ALPHA);

where RED, GREEN, BLUE, ALPHA, stands for float values from 0 to 1

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜