Class ZebraImageFactory

Object
com.zebra.sdk.graphics.ZebraImageFactory

public class ZebraImageFactory extends Object
A factory used to acquire an instance of a ZebraImageI.
  • Method Details

    • getImage

      public static ZebraImageI getImage(BufferedImage image) throws IOException
      Creates an instance of ZebraImageI from the image specified in image
      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 graphic
      IllegalArgumentException - when image argument is null
    • getImage

      public static ZebraImageI getImage(String fullPath) throws IOException
      Creates an instance of ZebraImageI from the image specified in fullPath
      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 graphic
      IllegalArgumentException - when fullpath arg is null
    • getImage

      public static ZebraImageI getImage(InputStream imageData) throws IOException
      Creates an instance of ZebraImageI from the image data specified in imageData
      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 graphic
      IllegalArgumentException - when imageData arg is null