extract method

TransformationData extract(
  1. int? top,
  2. int? left,
  3. int? height,
  4. int? width,
  5. String? boundingBox,
)

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,
) {
  // 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 (boundingBox != null) {
    values['bbox'] = boundingBox.toString();
  }

  return TransformationData(plugin: 't', name: 'extract', values: values);
}