Adding blur to an NSImage using Swift -
i'm searching way add together blur effect nsimage using swift.
developing ios, uiimage provides method like
applylighteffectatframe:frame
... not find equal cocoa/an osx-app.
edit 1: tried utilize cifilter:
let beginimage = ciimage(data: responsedata) allow filter = cifilter(name: "cigaussianblur") filter.setvalue(beginimage, forkey: kciinputimagekey) filter.setvalue(0.5, forkey: kciinputintensitykey) // how can create nsimage out of ciimage? allow newimage = ??? imageview.image = newimage
i solved issue adding content filter nsimageview within interface-builder.
swift nsimage nsimageview
No comments:
Post a Comment