Create Filled Paint - Android Graphics

Android examples for Graphics:Paint

Description

Create Filled Paint

Demo Code


import android.graphics.Paint;

public class Main{
    public static Paint toFilledPaint(
            de.mirkosertic.gameengine.type.Color aColor) {
        Paint thePaint = new Paint();
        thePaint.setARGB(255, aColor.r, aColor.g, aColor.b);
        thePaint.setStyle(Paint.Style.FILL_AND_STROKE);
        return thePaint;
    }//from w w w. j a va2s . c  o m
}

Related Tutorials