Is there a way to return a CIImage's size (width/height) in Swift 4? | بلاگ

Is there a way to return a CIImage's size (width/height) in Swift 4?

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

I have a CIImage passed through a function and I want to get the width. I can't believe I've made it this far and haven't needed to do this, and all my search results don't lead to answers.

I understand that CIImages are really just the information to make up an image, and not the rendered image, but I'm still processing filters on them.

So for instance I have: myCIImage.size.width But it gives me the error "Value of type 'CIImage' has no member 'size'"

What gives? Do I really need to convert it into a UIImage just to get the width?

asked 17 secs ago
VagueExplanation

...
نویسنده : استخدام کار بازدید : 7 تاريخ : چهارشنبه 25 بهمن 1396 ساعت: 3:12