com.android.builder.png
Class PngProcessor

java.lang.Object
  extended by com.android.builder.png.PngProcessor

public class PngProcessor
extends java.lang.Object

a PngProcessor. It reads a png file and write another png file that's been optimized and processed in case of a 9-patch.


Method Summary
static void clearCache()
           
static void process(java.io.File from, java.io.File to)
          Processes a given png and writes the resulting png file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

process

public static void process(@NonNull
                           java.io.File from,
                           @NonNull
                           java.io.File to)
                    throws java.io.IOException,
                           NinePatchException
Processes a given png and writes the resulting png file.

Parameters:
from - the input file
to - the destination file
Throws:
java.io.IOException
NinePatchException

clearCache

public static void clearCache()