public class ZebraImageFactory extends Object
Modifier and Type | Method and Description |
---|---|
static ZebraImageI |
getImage(BufferedImage image)
Creates an instance of
ZebraImageI from the image specified in image |
static ZebraImageI |
getImage(InputStream imageData)
Creates an instance of
ZebraImageI from the image data specified in imageData |
static ZebraImageI |
getImage(String fullPath)
Creates an instance of
ZebraImageI from the image specified in fullPath |
public static ZebraImageI getImage(BufferedImage image) throws IOException
ZebraImageI
from the image specified in image
image
- - A BufferedImageIOException
- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException
- when image arg is nullpublic static ZebraImageI getImage(String fullPath) throws IOException
ZebraImageI
from the image specified in fullPath
fullPath
- the full path of the imageIOException
- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException
- when fullpath arg is nullpublic static ZebraImageI getImage(InputStream imageData) throws IOException
ZebraImageI
from the image data specified in imageData
imageData
- a stream containing the image dataIOException
- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException
- when imageData arg is null
© 2015 ZIH Corp. All Rights Reserved.