Code example for CRC32

Methods: getValue, reset, update

0
   */ 
  protected void writeEnd() 
  { 
    this.bytePos = writeInt4(0, this.bytePos);
    this.bytePos = writeBytes(PngEncoder.IEND, this.bytePos);
    this.crc.reset();
    this.crc.update(PngEncoder.IEND);
    this.crcValue = this.crc.getValue();
    this.bytePos = writeInt4((int) this.crcValue, this.bytePos);
  } 
 
 
  /** 
   * Set the DPI for the X axis. 
   * 
   * @param xDpi The number of dots per inch 
   */ 
  public void setXDpi(final int xDpi)
  { 
    this.xDpi = Math.round(xDpi / PngEncoder.INCH_IN_METER_UNIT);