title: Creating gif barcode using barcode4j
body: <p>I'm trying to create barcode using <code>barcode4j</code> lib. This is what I've got:<img src="https://i.stack.imgur.com/7cBhr.gif" alt="enter image description here"> And it looks smooth. This is how I do:</p>
  
  <pre><code>        BitmapCanvasProvider provider = null;
  
  
          Interleaved2Of5Bean bean = new Interleaved2Of5Bean();
          int dpi = 100;
  
          // Configure the barcode generator
          bean.setModuleWidth(UnitConv.in2mm(1.0f /
                                             dpi)); // makes the narrow
          // bar
          // width exactly
          // one
          // pixel
  
          bean.doQuietZone(false);
          provider =
                  new BitmapCanvasProvider(100, BufferedImage.TYPE_BYTE_GRAY,
                                           true, 0);
          bean.generateBarcode(provider, request.getParameter("barcode"));
          provider.finish();
  
  
          BufferedImage barcodeImage = provider.getBufferedImage();
          response.setContentType("image/gif");
          OutputStream outputStream = response.getOutputStream();
          ImageIO.write(barcodeImage, "gif", outputStream);
          outputStream.close();
  </code></pre>
  
  <p>How to increase its difinition?</p>