ios - Setting up CIFilter in Swift -
How to translate the last line of the following ObjC code for a swift: the following line . After
CGAffineTransform transform = CFEfeinttransferTT; CIFF Filter * ClampFilter = [CIFF filter filter name: @ "CIFF clamp"]; [ClampFilter setValue: [NSValue valueWithBytes:, "inputTransform" @and change objctype: @encode (CGAffineTransform)] forKey
clampFilter .setValue generates
NSValue is a manufacturer that has a
CGAffineTransform arguments:
transform = CGAffineTransformIdentity go clampFilter = CIFilter (name: "CIAffineClamp") go = value = NSValue (CGAffineTransform: converge) clampFilter.setValue (Val, forKey: Inputtrans Swift 3:
transform = CGAffineTransform.Dientity Let's clampFilter = CIFilter (name: "CIAffineClamp")! Val = NSW (cgAffineTransform: transform) clampFilter.setValue (val, forKey: "inputTransform")
Comments
Post a Comment