core_utils/image_util
library
Functions
-
addWatermark({required Uint8List imageBytes, required List<String> watermarkLines, Color watermarkColor = Colors.white, int watermarkOpacity = 204, double watermarkFontSize = 18, Color backgroundColor = Colors.black, int backgroundOpacity = 178, EdgeInsets padding = const EdgeInsets.all(18)})
→ Future<Uint8List>
-
给图片添加多行水印(左下角位置)
-
saveWatermarkedImage({required Uint8List imageBytes, required List<String> watermarkLines, Color watermarkColor = Colors.white, int watermarkOpacity = 204, double watermarkFontSize = 16, Color backgroundColor = Colors.black, int backgroundOpacity = 122, EdgeInsets padding = const EdgeInsets.all(12)})
→ Future<File>
-
保存带水印的图片到文�?