Guest User

Untitled

a guest
Mar 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. lastSubStrokeCIImage = CIImage(mtlTexture: self.currentDrawable!.texture, options: nil)!.oriented(CGImagePropertyOrientation.downMirrored)
  2. subStrokeUIView.image = UIImage(ciImage: lastSubStrokeCIImage)
  3.  
  4. lazy var ciSubCurveAccumulator: CIImageAccumulator =
  5. {
  6. [unowned self] in
  7. return CIImageAccumulator(extent: CGRect(x: 0, y: 0, width: self.frame.width * self.contentScaleFactor, height: self.frame.height * self.window!.screen.scale ) , format: kCIFormatBGRA8)
  8. }()!
  9. ciSubCurveAccumulator.setImage(lastSubStrokeCIImage)
  10. strokeUIView.image = UIImage(ciImage: ciSubCurveAccumulator.image())
Add Comment
Please, Sign In to add comment