* @param contents The contents to encode in the barcode * @param format The barcode format to generate * @param width The preferred width in pixels * @param height The preferred height in pixels * @param hints Additional parameters to supply to the encoder * @return {@link B
(
contents: string,
format: BarcodeFormat,
width: number /*int*/,
height: number /*int*/,
hints: Map<EncodeHintType, any>
)
| 53 | * @throws WriterException if contents cannot be encoded legally in a format |
| 54 | */ |
| 55 | encode( |
| 56 | contents: string, |
| 57 | format: BarcodeFormat, |
| 58 | width: number /*int*/, |
no outgoing calls