任何人都知道用于预览图像的开源代码 [英] Anyone know of open source code for doing a preview of an image

查看:31
本文介绍了任何人都知道用于预览图像的开源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道任何用于预览图像的开源代码?我有一个图像存储在我的应用程序的 Documents 文件夹中,并希望通过将 URL 传递到本地文件来在模式弹出窗口中显示图像的预览.我正在寻找一些在 MonoTouch 或 Objective C 中提供具有缩放和平移功能的预览的开源代码.如果已经有开源代码可以做到这一点,我宁愿不重新发明轮子……我能说什么,我天生很懒……呵呵;)

我更喜欢 C# 代码,因为我的应用程序是用 C# 编写的,但是如果有一个很好的 Objective C 解决方案,那么我会将它移植到 MonoTouch 并在此处提供我的源代码.

解决方案

Checkout TTPhotoViewController:
http://joehewitt.com/post/the-three20-project/>

Does anyone know of any open source code for doing a preview of an image? I have an image stored in the Documents folder of my application and would like to show a preview of the image in a modal popup by passing in a URL to the local file. I am looking for some open source code either in MonoTouch or Objective C that provides a preview that has zooming and panning functionality. I would prefer not to reinvent the wheel if there is already open source code that does this... what can I say, I am inherently lazy... hehe ;)

My preference goes to C# code, as my application is coded in C#, but if there is a good Objective C solution for this then I will port it to MonoTouch and make my source available here.

解决方案

Checkout TTPhotoViewController:
http://joehewitt.com/post/the-three20-project/

这篇关于任何人都知道用于预览图像的开源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆