width property

int width
getter/setter pair

Gets/Sets the image width.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
List<int> bytes = File('image.png').readAsBytesSync();
Picture picture = sheet.picutes.addStream(1, 1, bytes);
picture.width = 150;
List<int> bytes = workbook.saveAsStream();
File('Picutes.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

int width = 0;