As I expect, wrong description. Sorry Once more. On this screenshot is what I'll describe http://locus.asamm.cz/data/screenshot02.png
1. I have one Path object with a complex path (as I walked and recorded path with GPS). 2. I draw this one Path object on canvas with c.drawPath(path, paint); where paint is Stroke, semi-transparent blue, width variable (now cca 50px) 3. I also draw second time same Path object with simple slim black color, 1px width, to see exact way I walked. You can on screenshot see, that all places have same blue color, even when on same place is path more then once. Clear? Xfer as I tested have no influence on this. It only works when I for example separate whole path object into more path objects, then color overlay work and on places where is more then one line, blue is darker. But it's really weird solution, manually separate path on straight lines. Is there anything I'm missing? Thank you for time to read this! On Mar 14, 10:10 am, Romain Guy <romain...@android.com> wrote: > It's not clear what your problem is? You can draw a Path and apply an > xfermode while drawing it. > > > > On Mon, Mar 14, 2011 at 1:50 AM, Menion <menion.as...@gmail.com> wrote: > > Hmm, looks that no one have answer. Is problem that my question is not > > understandable or here is no simple solution? > > > On Mar 13, 1:19 pm, Menion <menion.as...@gmail.com> wrote: > > > Hi, > > > I have one path object (for example recorded track). I'm drawing it > > > on canvas. When I set semi-transparent color to paint object, whole > > > path is colored like this. > > > > This is correct. Imagine that you was walking on some rectangle area > > > from one side to another, few times you were on same place. And want > > > to draw this path in same way you're drawing single lines, so you can > > > see places where you were more then once darker then others (because > > > line is draw there more then once). > > > > Anyway path object draw all areas with same color and because it's > > > only one object, Xfermode PorterDuffXfermode(PorterDuff.Mode.DARKEN) > > > have no effect on it. I hope you understand what I want. > > > > And I don't want to use only drawing single lines, because track > > > width should be for example 100px. Nice example is herehttp:// > > locus.asamm.cz/data/1300018457960.png. This is created with > > > drawing single lines and I want to all path to be connected together > > > but with darker places on place where I walk more then one. Do you > > > have any tip for this or only to separate path into more pieces? > > > > thanks guys! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en