Create Stroke Paint - Android Graphics

Android examples for Graphics:Paint

Description

Create Stroke Paint

Demo Code


import android.graphics.Paint;

public class Main{
    public static Paint toStrokePaint(
            de.mirkosertic.gameengine.type.Color aColor) {
        Paint thePaint = new Paint();
        thePaint.setARGB(255, aColor.r, aColor.g, aColor.b);
        thePaint.setStyle(Paint.Style.STROKE);
        return thePaint;
    }/*from  ww w  .  j  av a2  s .co m*/
}

Related Tutorials