How to do comparisons of bitmaps in iOS?

前端 未结 2 1022
故里飘歌
故里飘歌 2021-01-22 20:10

I have three CGLayers who\'s data I\'d like to compare.

void *a = CGBitmapContextGetData(CGLayerGetContext(layerA));
void *b = CGBitmapContextGetData(CGLayerGetC         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 20:56

    What about the CGBlendModes? kCGBlendModeDestinationOver acts as OR for A and B, and then you can use kCGBlendModeDestinationIn to AND that result with C.

提交回复
热议问题