Method: QREncoder::QRCode#width

Defined in:
ext/qrencoder_ext/qrencoder_ext.c

#widthObject Also known as: height

Width of the symbol in modules. This value usually corresponds to 1 module is 1 pixel, but you could conceivably scale it up if you wanted to.



22
23
24
25
26
# File 'ext/qrencoder_ext/qrencoder_ext.c', line 22

static VALUE _width(VALUE self) {
  QRcode *qrcode;
  Data_Get_Struct(self, QRcode, qrcode);
  return INT2FIX(qrcode->width);
}