Search code examples
objective-ciosopengl-escore-graphicsquartz-graphics

Soft Brush for Paint App?


Like in Photoshop and many other painting/photo editing program that it lets you set the hardness of the brush. Is it possible to do this with core graphics? Or I have to use OpenGL

PS. If I have to use OpenGL give me some codes and more details.


Solution

  • try CGContextSetShadowWithColor. The Shadow opacity depends on the shadow-color and the opacity of the drawn object. I believe applying a shadow to a full-tranzparent object is not possible without some masking.

    ... damn i wanted to add a new comment...