Skip to main content

Extensions Image 9.png Android

If you are an android app developer, is certainly no stranger to the image file with the extension .9.Png. Sometimes some android applications using image files with the extension .9.Png's. In this article I want to share with you about the image with the extension .9. Png.
Before going any further on the image with the extension .9. Png, we first discuss the meaning of .9.Png and unit of measure in the .9.Png.


What is .png file ?

PNG (Portable Network Graphics) image format one image using compaction methods do not eliminate the part of the image. Generally used for PNG images in web images. PNG image format has better compression factor than the GIF (5% -25% better than GIF format).

PNG files can work well on images with vivid color separation and graded. PNG files are divided into PNG-8 and PNG-24. For PNG-8 can compress the image with a smaller file size than GIF. While the PNG-24 save the file with a larger size. PNG-24 is commonly used for photographic images or graded, since the resulting image will be sharper. Another plus, PNG supports transparency as in the picture. GIFs.

For the Web, PNG format has three advantages over the GIF format: Channel Alpha (transparency). Gamma (setting the brightness image of en: "brightness"). Impressions image progressively (progressive display) For the purposes of image processing, though the PNG format can be used as an alternative during image processing but the JPEG format is still a better option. (Source: potter )


Wha Is .9. Png File ?

Is a file which is a derivative of. PNG in a single PNG file in use for several sizes. Or simply dynamic image size. Where size is determined from the pacth that is given in the file. Its use is intended to conserve file size. So the use of a static image into a minimum to reduce the file size of the application.

Problems with the .9. Png

  • Android devices come in many shapes and sizes, often making it very difficult for developers to design applications that look great on all screen sizes and a variety of orientations. To address this challenge, the graph can Nine Patch indispensable. In this article, we discuss what Nine Patch graphical format, how it works, and when to use them.
  • Sometimes when we edit the apk or create android application, we have a problem in the process of the application compile, because we forgot to use the image files with the extension .9.Png , therefore, in this article I want to share you about image editing with the extension .9 . png


What is Nine Patch ?
Graphics Nine Patch Android support for image scaling control. Graphic Nine Patch only PNG graphics that have patches, or areas of an image, defined to scale and stretch in the right areas, not the scale of the overall picture as a unit, which often obscures the graphic details. Generally, transparent or solid patch center, with the edge to remain fixed, the other edges are set to stretch, and the corners to remain fixed.

Illustration picture below will explain how an image (in this case, a square) is divided into nine patches.
extension image 9.png on android

When Do We Use Graphics NinePatch?

Graphics that can be stretched to be used anywhere in your application where size chart may vary, particularly useful for:

  • background Button (where text strings of various sizes)
  • Frames (where the picture of the inside should come in various sizes and aspect ratios)
  • Every time you use drawn with at least one dimension is set to wrap_conten



How To Edit Graphic Nine Patch (edit graphics on the apk)
To edit a graphic Nine Patch PNG graphic files using Draw 9-patch tool, perform the following steps draw nine patch tutorial:
  1. Open the / decompile apk file you want to edit by using the way you can find the article that i have make yesterday read how to edit apk file .
  2. Open the folder res / drawable (ldpi, mdpi, hdpi or another folder that contains the graphic)
  3. Edit the images you want to edit them using graphics editor like Adobe Photoshop or other graphics applications though.
  4. Once you are done editing, save the images in the format. Png
  5. Open the application "9-patch.bat" located in the Android SDK / directory "tools". (References: android development )
    image extension 9.png
    -Drag PNG file into the left pane (or use File-> Open NinePatch)
    how to use draw9patchstart
  6. Click the "Show Patch" checkbox at the bottom left.
    tutorial draw9patchstart
  7. Set your patch right scale (higher to see the results more clearly).
    To set the horizontal patch guide, click along the right edge of your graphic.
    To set the vertical patch guide, click along the top edge of your graphic.
  8. If you need to remove your patch, press Shift and click on your pixel (black).
  9. Keep your graphics with the extension .9. Png (for example, maxiandroid.9.png).



If you want to create a graphic file with the extension .9. Png you can find more detailed tutorial tutorial draw nine patch and here

Comments

Popular posts from this blog

How To Upgrade Samsung Galaxy Ace To Ice Cream Sandwich

today i will give tutorial upgrade samsung galaxy ace to Ice Cream Sandwich (ICS). We know that Samsung have been announced that there are no official update to android 4.0 for this device. But don't worry many developers from xda forum have found some ics rom for the device. And Today i will present on this article the most stable rom  the things that you must be concerned is : First, enable USB Debugging Mode in your mobile phone by go to Settings>Applications >Development > USB Debugging. then ticked that option Samsung Device Drivers installed on your computer. You must Have root acces to your device. see how to root galaxy ace Create a Nandroid Back before you flash your galaxy ace If you want to flash official firmware read flash official firmware on galaxy ace s5830 via odin Please note it is important to you to follow the following step, so you can do the process without any problem. For user experience you can read on comment area Download a...

How to Sync Android Contacts to Gmail With Easy Contact Sync

The synchronization and integration of services is one of the strengths of Android device if compared to his rivals. Any android application can used or combined with almost any other application or native service. Applications like Carbon Backup or Titanium Backup make use of backup copies of our device. But, what happens if what we want to synchronize are the contacts? in this case, in addition to the native option to Google (syncronize with Gmail), Don't worry, now you just can give thanks to a member of XDA developers, because they have invented  Easy Contact Sync app. The native Android sync is a wonder ; just enter our account on our device and voila! We have all our contacts synchronized and accessible from Gmail. Thus whenever we introduce ourselves in a new device, have our contacts there of form automagica . The problem is when we don't have our available Google account available (because we do not have internet connection at that moment or because we have lost t...

How To Download Apk From Google Play To PC

good morning everyone, in this post today i want to answer a question that often asked from my blog visitor. it is about how to download apk files from google play to PC . but before i give the tutorial i will explain the chronologycal from this post so that you will not confused. for owners of Android gadget would have become a habit to search for android applications, android games, and android widgets. either it is free or paid, and usually you are download it from google play store. when you are browsing with your Android phones it is easy, you don't need to confuse when you want to download the three types of application above, but how can if you want to download the apps on Play Store when you are using a PC or computer? What steps should you do to get the APK from the Android Market to PC? and now i will give the answer how to download apk from google play store and this tutorial that i share is the way that i often use to download apk from paly store if i was online us...