Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.graphics.Paint;
import android.graphics.PorterDuffXfermode;

public class Main {
    /**
     * Changes the paint color to transparent
     *
     * @param paint the object to mutate with the new color
     */
    public static void changePaintTransparent(Paint paint) {
        paint.setAlpha(0x00);
        paint.setXfermode(new PorterDuffXfermode(android.graphics.PorterDuff.Mode.CLEAR));
    }
}