2 * Licensed under the Apache License, Version 2.0 (the "License");
\r
3 * you may not use this file except in compliance with the License.
\r
4 * You may obtain a copy of the License at
\r
6 * http://www.apache.org/licenses/LICENSE-2.0
\r
8 * Unless required by applicable law or agreed to in writing, software
\r
9 * distributed under the License is distributed on an "AS IS" BASIS,
\r
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
11 * See the License for the specific language governing permissions and
\r
12 * limitations under the License.
\r
16 using System.Collections;
\r
18 namespace com.google.zxing
\r
20 public interface Reader
\r
23 * Locates and decodes a barcode in some format within an image.
\r
25 * @param image image of barcode to decode
\r
26 * @return String which the barcode encodes
\r
27 * @throws ReaderException if the barcode cannot be located or decoded for any reason
\r
29 Result decode(MonochromeBitmapSource image);
\r
32 * Locates and decodes a barcode in some format within an image. This method also accepts
\r
33 * hints, each possibly associated to some data, which may help the implementation decode.
\r
35 * @param image image of barcode to decode
\r
36 * @param hints passed as a {@link Hashtable} from {@link DecodeHintType} to aribtrary data. The
\r
37 * meaning of the data depends upon the hint type. The implementation may or may not do
\r
38 * anything with these hints.
\r
39 * @return String which the barcode encodes
\r
40 * @throws ReaderException if the barcode cannot be located or decoded for any reason
\r
42 Result decode(MonochromeBitmapSource image, Hashtable hints);
\r