From 7c9ca5660de4e26915b5d6807959bcf9e58b253b Mon Sep 17 00:00:00 2001 From: Hank Date: Wed, 29 May 2019 17:29:50 +0800 Subject: [PATCH] Update Code39.m 9 lines + must be 3 thick lines +1 interval = 13 --- Code39Test/Code39.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code39Test/Code39.m b/Code39Test/Code39.m index c9b7fbb..6df392e 100644 --- a/Code39Test/Code39.m +++ b/Code39Test/Code39.m @@ -17,7 +17,7 @@ + (UIImage *)code39ImageFromString:(NSString *)strSource // Source string CGFloat x = 1; // Left Margin CGFloat y = 0; // Top Margin // Width = ((WidLength * 3 + NarrowLength * 7) * (intSourceLength + 2)) + (x * 2) - CGFloat NarrowLength = (barcodew/(intSourceLength + 2)) / 17.0; // Length of narrow bar + CGFloat NarrowLength = (barcodew/(intSourceLength + 2)) / 13.0; // Length of narrow bar CGFloat WidLength = NarrowLength * 2; // Length of Wide bar NSString *strEncode = @"010010100"; // Encoding string for starting and ending mark * NSString * AlphaBet = @"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*"; // Code39 alphabets