如何使用特定名称保存 UIImagePicker 图像
我使用 UIPickerController 从 iphone 捕获图像,然后如何以编程方式以特定名称保存它,并稍后调用图像(通过使用名称),是否有可能更改图像大小,例如。从 100 x 100 像素到 50 x 50 像素,
谢谢
i capture image from iphone using UIPickerController, then how programatically to save it with specific name, and to call the image later (by using the name), is it any possibilities to change the image size eg. from 100 x 100 pixels to 50 x 50 pixels
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下代码片段将图像保存到文件中:
然后从文件中调用图像:
最后, 这篇文章提供了一种方法,您可以将其合并到您的项目中以调整图像大小。
The following code snippet will save the image to a file:
And then to recall the image from a file:
Finally, this post has a method available that you can incorporate into your project to resize the image.