extract method
Method for Basic Transformations
-
top
: top (Default: 10) -
left
: left (Default: 10) -
height
: height (Default: 50) -
width
: width (Default: 20) -
boundinpgbox
: Bounding Box (Default: )
Returns TransformationData.
Implementation
TransformationData extract(
int? top,
int? left,
int? height,
int? width,
String? boundinpgbox,
) {
// Determine if there are values to add to the dictionary
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 (boundinpgbox != null) {
values['bbox'] = boundinpgbox.toString();
}
return TransformationData(plugin: 't', name: 'extract', values: values);
}