iPhone: Blur UIImage

后端 未结 5 1006
情话喂你
情话喂你 2020-12-15 00:42

In my iPhone application I have a black-and-white UIImage. I need to blur that image (Gaussian blur would do).

iPhone clearly knows how to blur images,

5条回答
  •  天涯浪人
    2020-12-15 01:01

    To blur an image, you would use a convolution matrix. Here is the sample code to apply a convolution matrix, and here is an overview of convolution matrices as well as some sample matrices (including blur and gaussian blur).

提交回复
热议问题