public class NinePatchHelper
extends java.lang.Object
构造器和说明 |
---|
NinePatchHelper() |
限定符和类型 | 方法和说明 |
---|---|
static org.jb2011.ninepatch4j.NinePatch |
createNinePatch(java.awt.image.BufferedImage image,
boolean is9Patch,
boolean convert)
Creates the nine patch.
|
static org.jb2011.ninepatch4j.NinePatch |
createNinePatch(java.io.InputStream stream,
boolean is9Patch,
boolean convert)
Creates the nine patch.
|
static org.jb2011.ninepatch4j.NinePatch |
createNinePatch(java.net.URL fileUrl,
boolean convert)
Creates the nine patch.
|
public static org.jb2011.ninepatch4j.NinePatch createNinePatch(java.net.URL fileUrl, boolean convert)
fileUrl
- the file urlconvert
- the convertNinePatch.load(URL, boolean)
public static org.jb2011.ninepatch4j.NinePatch createNinePatch(java.io.InputStream stream, boolean is9Patch, boolean convert) throws java.io.IOException
stream
- the streamis9Patch
- the is9 patchconvert
- the convertjava.io.IOException
- Signals that an I/O exception has occurred.NinePatch.load(InputStream, boolean, boolean)
public static org.jb2011.ninepatch4j.NinePatch createNinePatch(java.awt.image.BufferedImage image, boolean is9Patch, boolean convert)
image
- the imageis9Patch
- the is9 patchconvert
- the convertNinePatch.load(BufferedImage, boolean, boolean)