zhanaotian / svg-android

Automatically exported from code.google.com/p/svg-android
0 stars 0 forks source link

Linear gradient ignores opacity #40

Open GoogleCodeExporter opened 9 years ago

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

This ellipse has 50% opacity and a linear gradient applied to the fill.  The 
transparency should be applied to the gradient, as it does in Illustrator, 
Batik, Firefox, etc.  However in svg android the gradient ignores the opacity 
tag.

-----------------------------
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="214.2998" 
y1="209.4316" x2="292.04" y2="209.4316" xlink:type="simple" xlink:show="other" 
xlink:actuate="onLoad">
        <stop offset="0.2873" style="stop-color:#FFFFFF" />
        <stop offset="1" style="stop-color:#000000" />
    </linearGradient>

        <ellipse opacity="0.5" fill="url(#SVGID_1_)" stroke="#000000" stroke-miterlimit="10" cx="253.17" cy="209.432" rx="38.87" ry="29.654" />
---------------------------------

What version of the product are you using? On what operating system?
svg android 1.1 on android 2.3.3

Original issue reported on code.google.com by sbhein...@gmail.com on 4 Oct 2012 at 5:22