FileDocCategorySizeDatePackage
Xfermodes.javaAPI DocAndroid 1.5 API6735Wed May 06 22:41:08 BST 2009com.example.android.apis.graphics

Xfermodes

public class Xfermodes extends GraphicsActivity

Fields Summary
Constructors Summary
Methods Summary
static android.graphics.BitmapmakeDst(int w, int h)

        Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
        Canvas c = new Canvas(bm);
        Paint p = new Paint(Paint.ANTI_ALIAS_FLAG);
        
        p.setColor(0xFFFFCC44);    
        c.drawOval(new RectF(0, 0, w*3/4, h*3/4), p);
        return bm;
    
static android.graphics.BitmapmakeSrc(int w, int h)

        Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
        Canvas c = new Canvas(bm);
        Paint p = new Paint(Paint.ANTI_ALIAS_FLAG);
        
        p.setColor(0xFF66AAFF);
        c.drawRect(w/3, h/3, w*19/20, h*19/20, p);
        return bm;
    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        setContentView(new SampleView(this));