What steps will reproduce the problem? 1. Scaling an image has no smoothing
What is the expected output? What do you see instead? Michael wants smoothing. There is no smoothing.
Please use labels and text to provide additional information.
From svgweb user group:
I am currently working on an SVG map that has a bitmap background, see here
http://vis.uell.net/nrw/10/atlas.html
The bitmap image needs to be linked from within the SVG for proper zooming like so
<image xlink:href="nrw_topo_ui.jpg" ... />
This works without a hitch but image quality is a lot worse in the flash renderer than native (you might want to use the transparency 'slider' to reduce opacity of the SVG part of the map to witness the quality degradation).
I am aware that bitmap scaling in Internet Explorer doesn't use bicubic by default and with css one would use the following to get smooth scaling
img { -ms-interpolation-mode:bicubic; }
Is there something similar in flash and if so how could it be triggered?
Thanks in advance Michael Neutze
Rick here. This patch provides the desired results:
Index: src/org/svgweb/nodes/SVGImageNode.as
--- src/org/svgweb/nodes/SVGImageNode.as (revision 1058) +++ src/org/svgweb/nodes/SVGImageNode.as (working copy) @@ -148,6 +148,7 @@ } this.bitmapData = null; bitmap.opaqueBackground = null; + bitmap.smoothing = true;
drawSprite.addChild(bitmap);
this.finishDrawNode();
I'm going to go ahead and add this since it seems to have no downside. If someone does not want smoothing then we can implement one of the SVG quality hints that control this. I am not inclined to implement that right now.
Comment #1
Posted on Mar 28, 2010 by Grumpy DogFixed in r1059.
Status: Fixed
Labels:
Type-Defect
Priority-Medium