applySimple static method

WatermarkResult applySimple(
  1. Uint8List imageBytes, {
  2. required int width,
  3. required int height,
  4. required String text,
  5. double opacity = 0.3,
})

Applies a quick watermark with text at center position using default settings.

Implementation

static WatermarkResult applySimple(
  Uint8List imageBytes, {
  required int width,
  required int height,
  required String text,
  double opacity = 0.3,
}) {
  return apply(
    imageBytes,
    width: width,
    height: height,
    config: WatermarkConfig(text: text, opacity: opacity),
  );
}