Android Open Source - Contrast Encode Hint Type






From Project

Back to project page Contrast.

License

The source code is released under:

Apache License

If you think the Android project Contrast listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright 2008 ZXing authors/* w ww. j  av a  2  s.  co m*/
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.justyoyo.contrast;

/**
 * These are a set of hints that you may pass to Writers to specify their behavior.
 *
 * @author dswitkin@google.com (Daniel Switkin)
 */
public enum EncodeHintType {

  /**
   * Specifies what degree of error correction to use, for example in QR Codes.
   * Type depends on the encoder. For example for QR codes it's type
   * {@link com.google.zxing.qrcode.decoder.ErrorCorrectionLevel ErrorCorrectionLevel}.
   * For Aztec it is of type {@link Integer}, representing the minimal percentage of error correction words. 
   * Note: an Aztec symbol should have a minimum of 25% EC words.
   */
  ERROR_CORRECTION,

  /**
   * Specifies what character encoding to use where applicable (type {@link String})
   */
  CHARACTER_SET,

  /**
   * Specifies the matrix shape for Data Matrix (type {@link com.google.zxing.datamatrix.encoder.SymbolShapeHint})
   */
  DATA_MATRIX_SHAPE,

  /**
   * Specifies a minimum barcode size (type {@link Dimension}). Only applicable to Data Matrix now.
   */
  MIN_SIZE,

  /**
   * Specifies a maximum barcode size (type {@link Dimension}). Only applicable to Data Matrix now.
   */
  MAX_SIZE,

  /**
   * Specifies margin, in pixels, to use when generating the barcode. The meaning can vary
   * by format; for example it controls margin before and after the barcode horizontally for
   * most 1D formats. (Type {@link Integer}).
   */
  MARGIN,

  /**
   * Specifies whether to use compact mode for PDF417 (type {@link Boolean}).
   */
  PDF417_COMPACT,

  /**
   * Specifies what compaction mode to use for PDF417 (type
   * {@link com.google.zxing.pdf417.encoder.Compaction Compaction}).
   */
  PDF417_COMPACTION,

  /**
   * Specifies the minimum and maximum number of rows and columns for PDF417 (type
   * {@link com.google.zxing.pdf417.encoder.Dimensions Dimensions}).
   */
  PDF417_DIMENSIONS,

  /**
   * Specifies the required number of layers for an Aztec code:
   *   a negative number (-1, -2, -3, -4) specifies a compact Aztec code
   *   0 indicates to use the minimum number of layers (the default)
   *   a positive number (1, 2, .. 32) specifies a normaol (non-compact) Aztec code
   */
   AZTEC_LAYERS,
}




Java Source Code List

com.justyoyo.contrast.BarcodeFormat.java
com.justyoyo.contrast.EncodeHintType.java
com.justyoyo.contrast.FormatException.java
com.justyoyo.contrast.ReaderException.java
com.justyoyo.contrast.WriterException.java
com.justyoyo.contrast.Writer.java
com.justyoyo.contrast.common.BitArray.java
com.justyoyo.contrast.common.BitMatrix.java
com.justyoyo.contrast.common.CharacterSetECI.java
com.justyoyo.contrast.common.reedsolomon.GenericGFPoly.java
com.justyoyo.contrast.common.reedsolomon.GenericGF.java
com.justyoyo.contrast.common.reedsolomon.ReedSolomonEncoder.java
com.justyoyo.contrast.example.DemoActivity.java
com.justyoyo.contrast.qrcode.QRCodeEncoder.java
com.justyoyo.contrast.qrcode.QRCodeWriter.java
com.justyoyo.contrast.qrcode.decoder.ErrorCorrectionLevel.java
com.justyoyo.contrast.qrcode.decoder.FormatInformation.java
com.justyoyo.contrast.qrcode.decoder.Mode.java
com.justyoyo.contrast.qrcode.decoder.Version.java
com.justyoyo.contrast.qrcode.encoder.BlockPair.java
com.justyoyo.contrast.qrcode.encoder.ByteMatrix.java
com.justyoyo.contrast.qrcode.encoder.Encoder.java
com.justyoyo.contrast.qrcode.encoder.MaskUtil.java
com.justyoyo.contrast.qrcode.encoder.MatrixUtil.java
com.justyoyo.contrast.qrcode.encoder.QRCode.java