Package com.twelvemonkeys.imageio.path
Class AdobePathBuilder
- java.lang.Object
-
- com.twelvemonkeys.imageio.path.AdobePathBuilder
-
public final class AdobePathBuilder extends java.lang.Object
Creates aShape
object from an Adobe Photoshop Path resource.- Author:
- Jason Palmer, itemMaster LLC, Harald Kuhr
- See Also:
- Adobe Photoshop Path resource format
-
-
Constructor Summary
Constructors Constructor Description AdobePathBuilder(byte[] data)
Creates a path builder that will read its data from abyte
array.AdobePathBuilder(java.io.DataInput data)
Creates a path builder that will read its data from aDataInput
, such as anImageInputStream
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Path2D
path()
Builds the path.
-
-
-
Constructor Detail
-
AdobePathBuilder
public AdobePathBuilder(java.io.DataInput data)
Creates a path builder that will read its data from aDataInput
, such as anImageInputStream
. The data length is assumed to be a multiple of 26.- Parameters:
data
- the input to read data from.- Throws:
java.lang.IllegalArgumentException
- ifdata
isnull
-
AdobePathBuilder
public AdobePathBuilder(byte[] data)
Creates a path builder that will read its data from abyte
array. The array length must be a multiple of 26, and greater than 0.- Parameters:
data
- the array to read data from.- Throws:
java.lang.IllegalArgumentException
- ifdata
isnull
, or not a multiple of 26.
-
-