2 * Copyright 2007 ZXing authors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
17 namespace com.google.zxing
\r
20 /// <summary> Encapsulates a type of hint that a caller may pass to a barcode reader to help it
\r
21 /// more quickly or accurately decode it. It is up to implementations to decide what,
\r
22 /// if anything, to do with the information that is supplied.
\r
25 /// <author> Sean Owen
\r
27 /// <author> dswitkin@google.com (Daniel Switkin)
\r
29 /// <author>www.Redivivus.in (suraj.supekar@redivivus.in) - Ported from ZXING Java Source
\r
31 /// <seealso cref="Reader.decode(BinaryBitmap,java.util.Hashtable)">
\r
33 public sealed class DecodeHintType
\r
36 // No, we can't use an enum here. J2ME doesn't support it.
\r
38 /// <summary> Unspecified, application-specific hint. Maps to an unspecified {@link Object}.</summary>
\r
39 //UPGRADE_NOTE: Final was removed from the declaration of 'OTHER '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
40 public static readonly DecodeHintType OTHER = new DecodeHintType();
\r
42 /// <summary> Image is a pure monochrome image of a barcode. Doesn't matter what it maps to;
\r
43 /// use {@link Boolean#TRUE}.
\r
45 //UPGRADE_NOTE: Final was removed from the declaration of 'PURE_BARCODE '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
46 public static readonly DecodeHintType PURE_BARCODE = new DecodeHintType();
\r
48 /// <summary> Image is known to be of one of a few possible formats.
\r
49 /// Maps to a {@link java.util.Vector} of {@link BarcodeFormat}s.
\r
51 //UPGRADE_NOTE: Final was removed from the declaration of 'POSSIBLE_FORMATS '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
52 public static readonly DecodeHintType POSSIBLE_FORMATS = new DecodeHintType();
\r
54 /// <summary> Spend more time to try to find a barcode; optimize for accuracy, not speed.
\r
55 /// Doesn't matter what it maps to; use {@link Boolean#TRUE}.
\r
57 //UPGRADE_NOTE: Final was removed from the declaration of 'TRY_HARDER '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
58 public static readonly DecodeHintType TRY_HARDER = new DecodeHintType();
\r
60 /// <summary> Allowed lengths of encoded data -- reject anything else. Maps to an int[].</summary>
\r
61 //UPGRADE_NOTE: Final was removed from the declaration of 'ALLOWED_LENGTHS '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
62 public static readonly DecodeHintType ALLOWED_LENGTHS = new DecodeHintType();
\r
64 /// <summary> Assume Code 39 codes employ a check digit. Maps to {@link Boolean}.</summary>
\r
65 //UPGRADE_NOTE: Final was removed from the declaration of 'ASSUME_CODE_39_CHECK_DIGIT '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
66 public static readonly DecodeHintType ASSUME_CODE_39_CHECK_DIGIT = new DecodeHintType();
\r
68 /// <summary> The caller needs to be notified via callback when a possible {@link ResultPoint}
\r
69 /// is found. Maps to a {@link ResultPointCallback}.
\r
71 //UPGRADE_NOTE: Final was removed from the declaration of 'NEED_RESULT_POINT_CALLBACK '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"
\r
72 public static readonly DecodeHintType NEED_RESULT_POINT_CALLBACK = new DecodeHintType();
\r
74 private DecodeHintType()
\r