makeTransparent static method

MakeTransparent makeTransparent({
  1. dynamic tolerance,
  2. dynamic colorToReplace,
})

Makes the background of the image transparent (or solid white for formats that do not support transparency). The background is determined as all pixels that resemble the pixels on the edges of the image.

Receives dynamic, dynamic returns Effect

Implementation

static MakeTransparent makeTransparent(
    {dynamic tolerance, dynamic colorToReplace}) {
  return MakeTransparent(
      tolerance: tolerance, colorToReplace: colorToReplace);
}