Well it seems I've found my own answer: CGContextAddPath(context, path); CGContextClosePath(context); CGContextClip(context); CGContextDrawLinearGradient(context, gradient, startPt, endPt, 0) Those lines of code perfectly clip it to the path of a rounded rect, or any path desired.
Well it seems I've found my own answer: CGContextAddPath(context, path); CGContextClosePath(context); CGContextClip(context); CGContextDrawLinearGradient(context, gradient, startPt, endPt, 0); Those lines of code perfectly clip it to the path of a rounded rect, or any path desired.
ClosePath is for closing an open subpath. If path is already closed, ClosePath will do nothing. Unless path is specifically a partial path for some reason (in which case you should change its name to something more specific), the time to close the path is when building the path in path, not afterward.
– Peter Hosey Jan 22 at 12:08 In my case, it was an open subpath, and I took your note into account and did a little refactoring of my code :D – Galaxas0 Jan 22 at 17:03.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.