MRchildNEO / svgweb

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

Pattern fill opacity not fully transparent #601

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Define a pattern fill with opacity. See the attached SVG file with an example.

I would expect a transparent rectangle, but what you get is a transparent 
rectangle on top of a white background. 

The problem is the white background of the bitmapData used for the fill in the 
file SVGPatternNode.as.

If the bitmapData is created like this, the problem is fixed:

var bitmapData:BitmapData = new BitmapData(patternWidth, patternHeight, true, 
0x00000000);

Original issue reported on code.google.com by william....@gmail.com on 11 Jan 2011 at 10:10

Attachments: