public static void Decode(Bitmap bmp) { if (bmp == null) { return; } if (!IsCortexReady) { return; } try { mCortexDecoder.Decode(bmp); } catch (Exception) { ResultString = "-Decode Error-"; return; } FullResult = mCortexDecoder.GetResult(); ResultString = FullResult.decodeData; ResultString = (ResultString == null || ResultString == "") ? ResultString = "NULL" : ResultString; ResultCenter = FullResult.center; BondRec = new Rectangle(FullResult.corner0.X, FullResult.corner0.Y, FullResult.corner1.X - FullResult.corner0.X, FullResult.corner2.Y - FullResult.corner0.Y); }
public void ResetResult() { result = new CortexResult(); }