INNER CODE UNIT · Dart

ImageEditorOhos

fluttercandies/flutter_image_editor · image_editor_ohos/lib/image_editor_ohos.dart:11

class ImageEditorOhos extends ImageEditorPlatform {
  static void registerWith() {
    ImageEditorPlatform.instance = ImageEditorOhos();
  }

  @override
  Future<Uint8List?> editImage({
    required Uint8List image,
    required ImageEditorOption imageEditorOption,
  }) async {
    Uint8List? tmp = image;
    for (final group in imageEditorOption.groupList) {
      if (group.canIgnore) {
        continue;
      }
      final handler = ImageHandler.memory(tmp);
      final editOption = ImageEditorOption();
      for (final option in group) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…