public class ZebraImageFactory
extends Object
Modifier and Type | Method and Description |
---|---|
static ZebraImageI |
getImage(java.awt.image.BufferedImage image)
Creates an instance of
ZebraImageI from the image specified in image |
static ZebraImageI |
getImage(java.io.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(java.awt.image.BufferedImage image) throws java.io.IOException
ZebraImageI
from the image specified in image
image
- A BufferedImagejava.io.IOException
- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException
- when image argument is nullpublic static ZebraImageI getImage(String fullPath) throws java.io.IOException
ZebraImageI
from the image specified in fullPath
fullPath
- the full path of the imagejava.io.IOException
- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException
- when fullpath arg is nullpublic static ZebraImageI getImage(java.io.InputStream imageData) throws java.io.IOException
ZebraImageI
from the image data specified in imageData
imageData
- a stream containing the image datajava.io.IOException
- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException
- when imageData arg is null
© 2017 ZIH Corp. All Rights Reserved.