I just try to program a WP8 app in C# which shows pictures on the lockscreen. So far everything works, but how do I create in code a JPEG image, which consists of an Image and a string?
The LockScreen should be then be able to change with
LockScreen.SetImageUri("Picture Uri").
Does anyone have an idea?
You need to save the image to the isolated storage and use the following path: ms-appdata:///local/<your-path-here>.
Links:
Lock screen for Windows Phone 8
Dynamic Lock Screen for Windows Phone 8
Related
I've got some pictures taken by my app. The pictures are displayed in ListBox control. Now, I want to after the click any image, this opened up in the Windows Phone Gallery. I know about PhotoChooserTask, but I don't want that first opened all pictures in gallery, and then, I select the image. Pictures will be viewed directly in the gallery. That is possible?
I had faced this issue when I was making Pin picture app for Windows Phone 8. So I can say it for sure: there is no way to open photo in system gallery from app. You can do it in Windows Phone 8.1 only.
Is there anyway to open WebP images in windows phone applications? I have a huge set of images to be downloaded from the web and jpg/png are heavy, so looking for an image format that would reduce the data to be downloaded without compromising much on the quality.
First, I recommends you to read https://en.wikipedia.org/wiki/WebP#Criticism. Secondly, since the fact that WebP is a web standard for images, you can try using a WebBrowser as your image control.
Finally, I believe that the reason you cannot reduce the quality its because you want to use the same image as an thumbnail. I suggest you to create a process that will generate a thumbnail, something like 480px x 800px for example. Now your Windows Phone app can show a "preview" of the image, and if the user wants to see the full one, must wait.
I want to load png files (with transparency) from the Windows Phone photo gallery. At the moment I am using the PhotoChooserTask. But the problem is, that even if the image is a png, I am getting back image data without transparency. When I look at the png files in the Windows Phone Gallery app then transparency is correct.
Are there means to load png files with transparency from the gallery?
Regards,
Sadly the answer is no. If the image didn't have transparency in it before you cannot add it.
Also (as you have discovered) you only get back an image stream from the media library not the original file itself and the stream only contains the colour data with no transparency.
Best option (if the user uses skydrive) is to use the Live/SkyDrive API to download images from the users backups or from the web.
Alternatively if you are doing a camera app, have a look at the lenses API or the Nokia Imaging SDK
i have recently started to develop apps for Windows Phone 8 after Windows Phone 7, the problem is with creating tiles, i am trying to use the simplest type (iconic tiles) just like we used to do in Windows Phone 7 opened the images from the assets and edited them from there, and modified the app manifest to select the images, but the tile is still showing white blank, i have searched deeply but there does not seem to be any tutorial about this
Make sure you are setting your images to Build Type of Content and that they are actually being included in your xap.
For a complete discussion about Tiles start: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202948(v=vs.105).aspx
Iconic Tiles cannot be colored. They are monochromatic. That is why you got blank white image. The only shape on transparent background is used by Windows Phone to show such kind of tiles.
To get colored Tile you have to use Flip Template for it.
I am testing a PhotoChooserTask based Windows Phone 8 application in an emulator. I want to test a specific image. Is it possible to somewhere add your own images to the sample photos that the emulator provides?
To be more specific, I want to test a library for decoding JPEG 2000 images, but it is not clear to me how to access arbitrary images on Windows Phone? FileOpenPicker compiles, but it throws a NotSupportedException when the constructor is invoked. The PhotoChooserTask is currently my best bet, but so far I have not been able to figure out to access images that are not part of the sample photos. And as far as I have been able to find out, MSDN documentation also does not provide a good enough answer.
Upload the photo somewhere online, go to that URL in WP8 IE10, tap and hold and click "Save Picture". The picture should now be in your "Saved Pictures" folder which is visible in the PhotoChooserTask.
FileOpenPicker isn't currently supported on WP8. It's only useful for choosing photos from C++ code since PhotoChooserTask is a managed API and is unavailable to C++ apps. Read more about that here # http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj215901(v=vs.105).aspx