0

In Android Studio + Java environment, I used to set xfermode. So, I was able to paint so many types of things.

Is this xfermode possible in Flutter?

[sample code which I wrote]

        bimage_baby_fit = Bitmap.createBitmap((int) baby_wh, (int) baby_wh, Bitmap.Config.ARGB_8888);
        canvas_baby = new Canvas(bimage_baby_fit);
        paint_baby = new Paint();
        canvas_baby.drawBitmap(bimage_vector_tmp, 0, 0, paint_baby);
        paint_baby.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
        canvas_baby.drawBitmap(bimage_baby_new, -1.0f * fit_x, -1.0f * fit_y, paint_baby);
mc j
  • 211
  • 1
  • 2
  • 4
  • check flutter's [Paint](https://api.flutter.dev/flutter/dart-ui/Paint-class.html) class official documentation – pskink Mar 27 '23 at 08:00

0 Answers0