Class GIFImage

java.lang.Object
com.d_project.qrcode.GIFImage

public class GIFImage extends Object
GIFイメージ(B/W)
Author:
Kazuhiko Arase, Leonard Woo
  • Constructor Details

    • GIFImage

      public GIFImage(int width, int height)
      Initialize gif image size.
      Parameters:
      width - 幅
      height - 高さ
  • Method Details

    • setPixel

      public void setPixel(int x, int y, int pixel)
      Set pixel value.
      Parameters:
      x - Pixel position X.
      y - Pixel position Y.
      pixel - Pixel value.
    • getPixel

      public int getPixel(int x, int y)
      Get pixel value.
      Parameters:
      x - Pixel position X.
      y - Pixel position Y.
      Returns:
      Pixel value.
    • write

      public void write(OutputStream out) throws IOException
      Write image to OutputStream.
      Parameters:
      out - OutputStream.
      Throws:
      IOException - if an I/O error occurs.