Hi again,

Nevermind, I solved it now: It turns out that the alpha setting does
apply when drawing the path, but for some reason it seems the values
scale differently than when drawing lines. When set to 100 like in my
example, the path will look completely opaque, but if I turn it down
to 30 it will look translucent.

/Niklas


On Aug 15, 10:50 am, Niklas <[email protected]> wrote:
> Hi, I'm having some trouble with the following code:
>
> paint.setColor(Color.WHITE);
> paint.setStyle(Paint.Style.STROKE);
> paint.setAlpha(100);
> paint.setStrokeWidth(12);
> canvas.drawPath(path, paint);
>
> It seems that the alpha setting is ignored, as the Path will be drawn
> fully opaque. If I call drawLine() or drawLines() using the exact same
> Paint object, the translucency is displayed fine. I looked through the
> Javadocs on Path, Canvas and Paint (And searched this group) but
> couldn't find any explanation.
>
> Any ideas of what I might be doing wrong? Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to