extract method
Method for Basic Transformations
top
: top (Default: 10)left
: left (Default: 10)height
: height (Default: 50)width
: width (Default: 20)boundingBox
: Bounding Box (Default: ) Returns TransformationData.
Implementation
TransformationData extract(
int? top,
int? left,
int? height,
int? width,
String? boundingBox,
) {
var values = <String, String>{};
if (top != null) {
values['t'] = top.toString();
}
if (left != null) {
values['l'] = left.toString();
}
if (height != null) {
values['h'] = height.toString();
}
if (width != null) {
values['w'] = width.toString();
}
if (boundingBox != null) {
values['bbox'] = boundingBox.toString();
}
return TransformationData(plugin: 't', name: 'extract', values: values);
}