Package com.zebra.sdk.graphics
Class ZebraImageFactory
Object
com.zebra.sdk.graphics.ZebraImageFactory
A factory used to acquire an instance of a ZebraImageI.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZebraImageIgetImage(BufferedImage image) Creates an instance ofZebraImageIfrom the image specified inimagestatic ZebraImageIgetImage(InputStream imageData) Creates an instance ofZebraImageIfrom the image data specified inimageDatastatic ZebraImageICreates an instance ofZebraImageIfrom the image specified infullPath
-
Method Details
-
getImage
Creates an instance ofZebraImageIfrom the image specified inimage- Parameters:
image- A BufferedImage- Returns:
- An image formatted for Zebra Printers
- Throws:
IOException- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException- when image argument is null
-
getImage
Creates an instance ofZebraImageIfrom the image specified infullPath- Parameters:
fullPath- the full path of the image- Returns:
- An image formatted for Zebra Printers
- Throws:
IOException- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException- when fullpath arg is null
-
getImage
Creates an instance ofZebraImageIfrom the image data specified inimageData- Parameters:
imageData- a stream containing the image data- Returns:
- An image formatted for Zebra Printers
- Throws:
IOException- when the file could not be found, open, or is an unsupported graphicIllegalArgumentException- when imageData arg is null
-