Example:
IEC16022Sharp.DataMatrix dx = new IEC16022Sharp.DataMatrix("hello world", 48, 48);
But if you want auto-size AND only squares, it's not possible at the moment. The auto-size routine searches in the whole list of available size. When one fits, it's used.
I think it's easy to modify the source-code... but at the moment I've no time. Sorry.
fabrizio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
isn't there a way to avoid formats like the C12X26?
that would be very cool if that is possible.
I don't understand. Can you explain a bit more?
well, it's simple...
the datamatrix barcode format is usually a square, but with your library sometimes it creates a rectangle...
I wanted to avoid that since I should always have a square barcode
You can set the size using this constructor:
public DataMatrix(string message, int w, int h)
Example:
IEC16022Sharp.DataMatrix dx = new IEC16022Sharp.DataMatrix("hello world", 48, 48);
But if you want auto-size AND only squares, it's not possible at the moment. The auto-size routine searches in the whole list of available size. When one fits, it's used.
I think it's easy to modify the source-code... but at the moment I've no time. Sorry.
fabrizio