I am tring achive overlay blend (like photoshop)in my android application. I have tried differnt PorterDuff.Modes (ie SCREEN, MYLTIPLY etc) with differnt combinations but could not achive the perfect overlay effect. Is there a way to achive effect?
You can use PorterDuff overlay Mode as i shown below. It will work on the API level 11 or higher.
Compose.setXfermode(new android.graphics.PorterDuffXfermode(Mode.OVERLAY));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.