generateImagePngWithMask method

Future<Uint8List> generateImagePngWithMask({
  1. required String engineId,
  2. required ImageMaskingRequestParam params,
  3. required Uint8List initImage,
  4. String? apiKey,
  5. String? organization,
  6. String? clientId,
  7. String? clientVersion,
})

Selectively modify portions of an image using a mask Returns the bytes of the image PNG

Implementation

Future<Uint8List> generateImagePngWithMask({
  required String engineId,
  required ImageMaskingRequestParam params,
  required Uint8List initImage,
  String? apiKey,
  String? organization,
  String? clientId,
  String? clientVersion,
}) async {
  return _generationService.generateImagePngWithMask(
      apiKey: apiKey ?? _apiKey,
      engineId: engineId,
      params: params,
      initImage: initImage,
      organization: organization,
      clientId: clientId,
      clientVersion: clientVersion);
}