PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

PathOverlay draw an itinerary with transparence problem #243

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. add an overlay of sub class PathOverlay,
2. use the overlay to draw an itinerary with transparence, and use the code 
below for blend in the constructor of the overlay:
this.mPaint.setStyle(Paint.Style.STROKE);
this.mPaint.setFlags(Paint.ANTI_ALIAS_FLAG);
this.mPaint.setStrokeCap(Paint.Cap.ROUND);
this.mPaint.setStrokeJoin(Paint.Join.ROUND);
3. add the overlay into map view 

What is the expected output? What do you see instead?
the color of the junction point between two section of the itinerary is darker 
than the color of the section. ref. the picture. 

What version of the product are you using? On what operating system?
I use the latest version of osmdroid for android (version 3.0.4), and test it 
in emulator API 7 (WVGA800).

Please provide any additional information below.
I think it is because osmdroid draw all things in the same canvas, the method 
setXfermode
can not give me the right result even I write like this in the constructor:
this.mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC));

Original issue reported on code.google.com by Jiehao.Y...@gmail.com on 19 Jul 2011 at 12:47

Attachments:

GoogleCodeExporter commented 8 years ago
This is not an osmdroid related issue.

Original comment by kurtzm...@gmail.com on 5 Mar 2013 at 5:49