/** * Creates the QR barcode. The barcode is always created with the smallest possible size and is then stretched * to the width and height given. Set the width and height to 1 to get an unscaled barcode. * @param content the text to be encoded * @param width the barcode width * @param height the barcode height * @param hints modifiers to change the way the barcode is create. They can be EncodeHintType.ERROR_CORRECTION * and EncodeHintType.CHARACTER_SET. For EncodeHintType.ERROR_CORRECTION the values can be ErrorCorrectionLevel.L, M, Q, H. * For EncodeHintType.CHARACTER_SET the values are strings and can be Cp437, Shift_JIS and ISO-8859-1 to ISO-8859-16. The default value is * ISO-8859-1. * @throws WriterException */ public BarcodeQRCode(String content, int width, int height, IDictionary<EncodeHintType, Object> hints) { QRCodeWriter qc = new QRCodeWriter(); bm = qc.Encode(content, width, height, hints); }