title: Printing a .TIF file
body: <p>I am able to print a .GIF, .JPG or .PNG successfully using the following code snippet but it doesn't work for .TIF file.  Also I can't get the color even after adding the <code>chromaticity.color</code> attribute.</p>
  
  <pre><code>public class PrintImage {
      static public void main(String args[]) throws Exception {
      PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
      pras.add(new Copies(1));
      pras.add(chromaticity.color);
      PrintService pss[] = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.GIF,     pras);
  
      if (pss.length == 0)
          throw new RuntimeException("No printer services available.");
  
      PrintService ps = pss[0];
      System.out.println("Printing to " + ps);
      DocPrintJob job = ps.createPrintJob();
      String fileName = "C:/labels/2.tif"
      FileInputStream fin = new FileInputStream(fileName);
      Doc doc = new SimpleDoc(fin, DocFlavor.INPUT_STREAM.GIF, null);
      job.print(doc, pras);
      fin.close();
  }
  </code></pre>
  
  <p>How do I support .TIF for printing?</p>