Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Code39Test/Code39.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down