コード例 #1
0
        private float GetBarcodeHeight(Quadrilateral predictedLocation)
        {
            var topLeft     = picker.ConvertPoint(predictedLocation.topLeft);
            var bottomLeft  = picker.ConvertPoint(predictedLocation.bottomLeft);
            var topRight    = picker.ConvertPoint(predictedLocation.topRight);
            var bottomRight = picker.ConvertPoint(predictedLocation.bottomRight);

            return((float)Math.Max(bottomLeft.Y - topLeft.Y, bottomRight.Y - topRight.Y));
        }