- Home /
Opening a local image from the memory
Hi! I need to show some images for an app that should be used without internet. So there is no option to show them in the browser from the internet. Also I thought possible to show them with a textured plane with the image. But I found that it would be graet to have the possibility to enlarge the image to see the details.
So I got an idea, but not how to implement it. I think that probably its a good idea to show the image that is in the project (locally) with the browser (or the image gallery app??). I don't know if this is possible or not. It should be great that the solution works in iOS and Android.
Thanks!! Pascual
To access the local memory storage on a phone device, you will have to look up the coding refs for iOS and Android. I know the android ref can be found http://developer.android.com/reference/packages.html>here. $$anonymous$$ight be much much much easier to just include the image in your build and load it when the user want to view it. That will be the same for both iOS and Android
PasZ : And how can i do that? / And how can i "just include the image in your build and load it when the user want to view it" ??
($$anonymous$$e : Please, use comments for that sort of things.)
Answer by hijinxbassist · Jun 05, 2012 at 07:40 PM
You can use Resources folder and place your large images in there. Then when the user clicks the button to view the large image, call Resources.Load and store that image in the memory. Then you can view that image full screen by using OnGUI or a camera aligned Plane.
PasZ : Yes, but with that solution It wont be possible to make zoom or drag the image!!
$$anonymous$$e : Use comments PasZ, you won't go through moderation and I won't have to replace your answers.
You would have to code a zoom function. You can drag the image by again coding something to move the placement of the image.
Is not possible to open it on the Gallery app of the mobile phone??
You wanted a solution for both android and iphone, so to open those 'in built galleries' you will need to code them separately using the coding ref for those OS'.
Your answer
Follow this Question
Related Questions
Download Image to a new album (Android) 0 Answers
Image Background Problem 1 Answer
WWW image method to change raw image texture. Script problem. 0 Answers
How to load image from android gallery 0 Answers