Android make 9.png pictures

Source: Internet
Author: User
<span id="Label3"></p>What do you mean. 9.PNG, This is a special picture of Android Development. This format is capable of adapting the size of the image in an Android Environment.   (1) allows developers to define extensible areas where the content of the expandable area is extended when the image needs to be stretched to fill larger areas than the image itself. (2) allows developers to define content display areas for displaying text or other content<p><p></p></p>As shown in: left and above the black Line cross section can expand the area to the right and bottom of the black line cross part of the content display area with it can achieve partial stretching, so that the picture on the Android system perfect application of the system framework-res.apk package of oil to look carefully, there are many There. 9. PNG suffix pictures These images are specially processed by the Android tool, and if not processed, there will be distortion and abnormal stretching of the PNG image directly.<p><p></p></p><p><p>First of all, we have to introduce the 9.png image of his specific differences, it is surrounded by a normal PNG image compared to a pixel bit of white area, the region</p></p><p>It can only be seen when the image is restored and manufactured, and cannot be seen when packaged, and the total pixel of the image is reduced by 2 pixels, such as a 9.png image of 23x23 pixels<br>When packaged, it becomes 21x21 pixels. So we should pay attention to the size when making.<br>When we make a 9.png picture, you are surprised to find a few KB or dozens of KB of pictures, become very small, generally only hundreds of bytes so large,<br>The system will certainly load more smoothly.<br><br>Important statement, the production tools need to build a Java operating environment, is to download the JDK installation, and set the environment variables in the computer properties, the specific operation of this post will not say,<br>Find out how to build environment variables on the Internet.<br><br>second, How to make 9.png picture material:<br><br>1. Download tool: draw9patch.zip the tool sdk.<br>2, decompression, execution draw9patch.bat, will appear<br><br><br>3, you use PS production of picture material, dragged to the window, appears<br><br><br><br>Explanation: the middle Black stripe section indicates that it cannot be edited, and the edge white transparent box is the added one-pixel border described Above.<br>4, put the mouse on the white border, click Left and drag, there will be black lines<br><br><br><br>Explanation: the area covered by the black bar position 1th indicates that the area is stretched only when the picture is stretched horizontally<br>Number 2nd black bar position to the right covers the area when the picture is stretched vertically.<br>Number 3rd black bar position to the left covers the area where the picture is displayed vertically<br>Number 4th black Bar position up-covered area indicates the area where the picture is displayed horizontally<br>Where there is no black bar, the area covered is the same as when the picture is stretched (for example, if the corners of the picture are curved, the arcs in the corners do not change when the picture is stretched arbitrarily)<br>5, If the error is more select part, you can hold down the shift key, Click the left mouse button to remove the black bar<br>6, Right 3 black graphics area to show the current stretch effect<br>7, Select a good area, click on the left File-"save 9-path, save the picture, suffix named xxx.9.png, this time the picture effect is:<br><br><br><br></p><p><p></p></p><p><p>   <strong> Explanation: We can see the picture around 4 more black bars, do not worry about this picture is not available, This is the original 9.png picture, when we proceed to the next step, the picture becomes normal. <br> <br> Go black side: <br> </strong> unzip Xultimate-d9pc-x86.rar package <br> 1. Take the image of the preprocessing black edge to the directory example1\res\drawable-hdpi <br> 2. Double-click the xultimate-d9pc.exe, hear the computer drops of a sound, you can complete the black edge (the 9.png image is loaded inside the black edge Information) <br> 3. The done file is automatically generated at the root of the done\example1\res\ drawable-hdpi, That's The 9 we've been dealing With. PNG image <br> 4. This image is what we want to beautify the replacement image <br> <br> <br> <br> </p></p> <blockquote> <blockquote> <blockquote> <blockquote> ====================================== Anti-edit image for black side template ===================================== <br>Decompression Apktool.zip Compression Pack <br>Click Install. Bat "to generate several files in the system C Drive. <br>3, will you want to modify the framework-res.apk (can also be other system program apk file, such as Music.apk) renamed to update.apk, and put to C: Packing directory <br>(c: must be placed, because the batch file that is executed later is written in C: Work) <br>4, execute C: Root directory unpack.bat, this time will be in C: Generate an update folder, inside the content is you want to modify the APK file, and when you open drawable-hdpi <br>folder, you will find that the 9.png image inside is similar to the one we made above, there are 4 black edges, This is the tool to restore it. <br>======================= Press the Ait+tab key to convert the WINDOW. Control Black Edge template, draw black Edge speed, quasi-=============================== </blockquote> </blockquote> </blockquote> </blockquote><p><p><span style="color: #333333; font-family: Arial;"></span></p></p>From: http://www.cnblogs.com/lee0oo0/articles/2750729.html<p><p>Android make 9.png pictures</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.