Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用路径屏蔽图像?我想要做的是画一条线CGContextStrokePath,只显示它下面的那些部分CGLayerRef。另外,你如何只擦除CGLayerRef 它下面的那些部分?
CGContextStrokePath
CGLayerRef
另请查看 文档CGContextSetBlendMode(),尤其是与kCGBlendModeClear.
CGContextSetBlendMode()
kCGBlendModeClear