I've created some avatars from vector artwork and saved them as transparent PNGs. If I place the PNGs in interface builder, the quality is perfect. When I place them using code, the edges are horribly jagged, as if the AA has been removed, yet it's the same image. Is there any way to place them with code and maintain nice smooth edges?
I've attached a screenshot below with the iphone ver on the right.
Thanks,
Chris
Whenever you take an iPhone screen capture, the image is automatically saved to the Camera Roll in PNG format. You can then open it on your phone and view it without the need for any third-party software. No, that was not a misprint. The iPhone supports the PNG format right out of the box.
To change the quality of a PNG, all you have to do is adjust the only option, where you can enter the desired percentage of the new quality. Decreasing values from 99% to 0% reduces the quality of the PNG. Increasing values from 101% to 200% improves the quality of the PNG.
Select File > Export as > PNG from the menu. Change the Zoom to a higher percentage, 200% or 300%, for example. Set the other options as you need, then click Export. When you use the PNG image in a document or on the web, restrict its dimensions to effectively display the image at a higher resolution (DPI).
In the “Albums” section, tap “Camera Roll” to bring up thumbnails of all the photos and videos saved in your iPhone's photo library. Step 3. Proceed to click on the thumbnail to display the full-sized PNG picture file(s).
Apple compresses pngs
using a special optimization formula. It is possible that this formula is causing your images to alter from the original. If you notice a difference that you cannot live with, turn off the optimization by going into your target
's info panel and unchecking the Compress PNG files
option under the build
tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With