简体   繁体   English

如何在 iPhone 应用中实现照片效果?

[英]How to implement photo effects in iPhone app?

Is it possible to bring the photo Booth effects (twirl, squeeze, bulge) for an image?是否可以为图像带来 Photo Booth 效果(旋转、挤压、凸出)?

The normal way in OS X to apply such filters is Core Image.在 OS X 中应用此类过滤器的常规方法是 Core Image。 Core Image isn't part of the current iPhone SDK, but Apple have announced that it'll be in iOS 5. That's currently under NDA so can't be discussed beyond the detail Apple have made public on sites such as this, but given what is public I think it'd be a very good idea to ask again or to update your question once iOS 5 is released. Core Image 不是当前 iPhone SDK 的一部分,但 Apple已经宣布它将在 iOS 5 中。这目前处于 NDA 之下,因此除了 Apple 在此类网站上公开的细节之外无法进行讨论,但鉴于什么是公开的 我认为在 iOS 5 发布后再次询问或更新您的问题是一个非常好的主意。

In the meantime, if you want to do the effect live you're probably best off uploading the image to OpenGL and applying some sort of pixel shader, which is quite an undertaking but previous StackOverflow answers such as this one are likely to be helpful.同时,如果您想实时制作效果,您可能最好将图像上传到 OpenGL 并应用某种像素着色器,这是一项艰巨的任务,但之前的 StackOverflow 答案(例如这个)可能会有所帮助。

Core Image is now part of iOS 5. It has many filters you can use for creating photo effects by simply combining them. Core Image 现在是 iOS 5 的一部分。它有许多过滤器,您可以通过简单地组合它们来创建照片效果。 You can use Photo Effects SDK that is built on Core Image.您可以使用基于 Core Image 构建的Photo Effects SDK It comes with 35+ ready to use photo effects.它带有 35+ 准备使用的照片效果。 You can also easily create your own photo effects with the builtin filter chaining support.您还可以使用内置的滤镜链接支持轻松创建自己的照片效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何像iPhone的照片应用程序一样实现删除动画 - How to implement delete animation like iPhone's photo app 如何在iPhone中实现照片幻灯片放映? - how to implement photo slide show in iphone? 如何在我的应用程序中实现“选择现有照片”,如默认的iPhone电话簿? - how do I implement “Choose Existing Photo” in my app like in default iphone phonebook? 如何使用iPhone SDK实现像Photo应用程序的可滑动图像堆栈? - How do you implement swipe-able image stacks like the Photo app using the iPhone SDK? iPhone应用程序的副作用 - Side effects of a iphone app 如何在iPhone应用程序中一起上传照片和照片说明? - How to upload photo and photo's description TOGETHER in iphone app? 如何在iPhone App中实现PSCollectionView? - How to implement PSCollectionView in iphone App? 如何实现从iPhone照片库删除功能? - how to implement delete functionality from the iphone photo library? iPhone:如何将照片上的人标记为iPhone的Facebook应用? - iPhone: how to tag people on photo as facebook app for iPhone does? iPhone:如何通过iPhone照片应用程序等“编辑”功能从照片库或相机中获取图像 - iPhone:How to fetch image from photo library or camera with “edit” funcitionality like iPhone photo app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM