New C# port from Suraj Supekar
[zxing.git] / csharp / common / DetectorResult.cs
diff --git a/csharp/common/DetectorResult.cs b/csharp/common/DetectorResult.cs
new file mode 100755 (executable)
index 0000000..9a327a4
--- /dev/null
@@ -0,0 +1,60 @@
+/*\r
+* Copyright 2007 ZXing authors\r
+*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*      http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+*/\r
+using System;\r
+using ResultPoint = com.google.zxing.ResultPoint;\r
+namespace com.google.zxing.common\r
+{\r
+       \r
+       /// <summary> <p>Encapsulates the result of detecting a barcode in an image. This includes the raw\r
+       /// matrix of black/white pixels corresponding to the barcode, and possibly points of interest\r
+       /// in the image, like the location of finder patterns or corners of the barcode in the image.</p>\r
+       /// \r
+       /// </summary>\r
+       /// <author>  Sean Owen\r
+       /// </author>\r
+       /// <author>www.Redivivus.in (suraj.supekar@redivivus.in) - Ported from ZXING Java Source \r
+       /// </author>\r
+       public sealed class DetectorResult\r
+       {\r
+               public BitMatrix Bits\r
+               {\r
+                       get\r
+                       {\r
+                               return bits;\r
+                       }\r
+                       \r
+               }\r
+               public ResultPoint[] Points\r
+               {\r
+                       get\r
+                       {\r
+                               return points;\r
+                       }\r
+                       \r
+               }\r
+               \r
+               //UPGRADE_NOTE: Final was removed from the declaration of 'bits '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"\r
+               private BitMatrix bits;\r
+               //UPGRADE_NOTE: Final was removed from the declaration of 'points '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'"\r
+               private ResultPoint[] points;\r
+               \r
+               public DetectorResult(BitMatrix bits, ResultPoint[] points)\r
+               {\r
+                       this.bits = bits;\r
+                       this.points = points;\r
+               }\r
+       }\r
+}
\ No newline at end of file