Essay sample library > PNG - Wikipedia

PNG - Wikipedia

2023-06-20 11:45:52

PNG stands for Portable Network Graphics. It is a new image format than JPEG or GIF. Part of the PNG design is designed to replace GIF, so there are new features. There are two kinds of PNG image format. PNG-8 supports up to 256 colors, PNG-24 can accommodate up to 16.8 million colors, PNG-32 can handle up to 16.8 million colors, and has high transparency. PNG supports transparency like GIF. In other words, you can make the selected image area (or the whole image) transparent. Furthermore, in PNG it is possible to specify the transparency ratio (so-called alpha synthesis). This means that you can control the level at which the background image is displayed. You can combine PNG images with backgrounds in a way superior to GIF. It is easy to see by placing circular or irregularly shaped images on top of another image.

9patch png is a special format for PNG that can be used as a background. Nine patch images are particularly useful when designing buttons. 9 patch defines nine segments for each of four corners, four edges, and center, rather than defining a regular bitmap used as a background. It is an obvious way to avoid unnecessary files in the APK, to confirm that there are no duplicate functions or duplicate assets in the application. It is important to understand the Android API to use and all the functions provided by each API. The Android API may already be working on another API. Duplicate assets (strings, bitmaps etc) also waste space and can easily be avoided. Not much, but passing duplicate code will unnecessarily increase the size of the binary passed in.

PNG format is also very common when creating images for iPhone and iPad. Please note that photos are not rendered well in PNG format. The reason is that since png is a reversible format, the compression applied to the png image is so small that the file size is much larger than its .jpg siblings. Use GIF to limit simple web graphics to a maximum of 256 colors. GIF files are always shrunk to less than 256 colors and create graphics that are loaded very fast and fast for the web. GIF is perfect for web buttons, charts or charts, cartoon-like pictures, banners, text titles. GIF is also used for small and compact web animation. With the advent of mobile media and social media, GIF images and GIF animations are redisplayed and GIFs are rarely used for pictures.