anchor.diff:      );
     }
   
  -//  Future<List<int>> _findRectARGBPixels(
  -//      Offset point, int width, int height) async {
  -//    final double dpr = ui.window.devicePixelRatio;
  -//    final dx = (point.dx * dpr).toInt();
  -//    final dy = (point.dy * dpr).toInt();
  -//
  -//    if (snapshot == null) {
  -//      await _updateSnapshot();
  -//    }
  -//
  -//    final List<int> argbPixels = List<int>(width * height);
  -//
  -//    for (int j = 0; j < height; j++) {
  -//      for (int i = 0; i < width; i++) {
  -//        final int x = dx + i;
  -//        final int y = dy + j;
  -//        assert(snapshot.boundsSafe(x, y), '超出范围');
  -//        final int abgrPixel = snapshot.getPixelSafe(x, y);
  -//        final int argbPixel = _abgrToArgb(abgrPixel);
  -//        argbPixels[j * width + i] = argbPixel;
  -//      }
  -//    }
  -//
  -//    return List.unmodifiable(argbPixels);
  -//  }
  -
     Future<void> _updateImage() async {
       _imageUint8List = null;
       final imageData = await imageUint8List;
       if (imageData == null) {
         return;
       }
  -//    final startTimestamp = DateTime.now();
       _image = images.decodeImage(imageData);
  -//    final imagesImageTimestamp = DateTime.now();
       final codec = await ui.instantiateImageCodec(imageData);
       final info = await codec.getNextFrame();
  -//    final uiImageTimestamp = DateTime.now();
  -//    print(
  -//        '获取当前截图的images.Image耗时：${imagesImageTimestamp.millisecondsSinceEpoch - startTimestamp.millisecondsSinceEpoch}ms');
  -//    print(
  -//        '获取当前截图的ui.Image耗时：${uiImageTimestamp.millisecondsSinceEpoch - imagesImageTimestamp.millisecondsSinceEpoch}ms');
       ColorPickerKit.instance.snapshot.value = info.image;
       if (!_ready && mounted) {
         // 第一次获取Image会有耗时
  
positive.code:     int b = argbColor & 0xFF;
      return (argbColor & 0xFF00FF00) | (b << 16) | r;
    }
  
  //  void _calculateMatrix4() {
  //    if (_position == null) {
  //      return;
  //    }
  //
  //    setState(() {
  //      final double newX = _position.dx;
  //      final double newY = _position.dy;
  //
  //      final Matrix4 updatedMatrix = Matrix4.identity()
  //        ..scale(_scale, _scale)
  //        ..translate(-newX, -newY);
  //
  //      _matrix = updatedMatrix;
  //    });
  //  }
  
  //  Widget _buildMagnifier(BuildContext context) {
  //    return ClipOval(
  //      child: BackdropFilter(
  //        filter: ui.ImageFilter.matrix(_matrix.storage,
  //            filterQuality: FilterQuality.high),
  //        child: CustomPaint(
  //          painter: ColorPickerPainter(),
  //          size: Size.fromRadius(_radius),
  //        ),
  //      ),
  //    );
  //  }
  
  }
  
  class GridsPainter extends CustomPainter {
  
negative.code:         Rect.fromLTWH(left, top, width.toDouble(), height.toDouble());
      final distRect = Rect.fromLTWH(0, 0, size.width, size.height);
      canvas.drawImageRect(image, srcRect, distRect, paint);
    }
  
    @override
  