有没有办法使用抗锯齿来平滑边缘?
If the pixel in the mask has an alpha value of less than 0.05,the image pixel is masked out.
因此,SKCropNode不支持每像素Alpha值.它要么绘制像素,要么没有.如果alpha(如反锯齿使用的)对您很重要,则应考虑替代路由.例如:
How to Mask an UIImageView