可平滑图像加载的SWF? [英] Can be smoothing image in a loaded SWF?

查看:237
本文介绍了可平滑图像加载的SWF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图加载SWF到另一个在AS3 / HAXE。加载的SWF中包含一些图片 - 但只有在某些 Shape.graphics 元素。 (如 graphics.beginBitmapFill(); ...) 此图像不平滑和锯齿。 可这照片上运行时无论如何平滑? 任何黑客感兴趣! :)

I'm trying to load an SWF into another in AS3/Haxe. The loaded SWF contains some images - but only on some Shape.graphics elements. (Like graphics.beginBitmapFill(); ...) This images are not smoothed, and jaggy. Can this images be smoothed anyhow during runtime? Any hack interested! :)

在此先感谢! 汤姆

更新:对不起,我忘了提,那我加载更多的AS2,主权财富基金(AVM1)到一个AS3-SWF(AVM2)与<一个href="http://$c$c.google.com/p/flexpaper/source/browse/trunk/FlexPaper/src/com/devaldi/streaming/AVM2Loader.as"相对=nofollow> AVM2Loader ,该黑客所加载的字节,并转换AVM1主权财富基金到AVM2 - 它工作得很好。 :)

Update: Sorry, but I forget to mention, that I'm loading more AS2-SWFs (AVM1) into one AS3-SWF (AVM2) with AVM2Loader, which hack the loaded bytes, and convert the AVM1 SWFs into AVM2 - it works very well. :)

那么,这些主权财富基金,我需要找到图像/位图,但只找到了图形,其中图形元素有图像。如果我清除此图形,然后所有图像都没有了,所以我认为,图像在某些 graphics.beginBitmapFill(...); ,不平滑。我想找到他们,并平滑切换在运行时,如果可能的话。 (很抱歉,如果我第一次不太清楚。)

So, in these SWFs I need to find the images/bitmaps, but only found the Shapes, which graphics elements has the 'images'. If I clear this graphics, then all images are gone, so I think, the images are in some graphics.beginBitmapFill(...);, without smoothing. I want to reach them, and switch smoothing on at runtime, if possible. (Sorry, if the first time I was not enough clear.)

编辑(1月23日'14):我找到解决方案了。它并不快,而且需要的Flash Player 11.6。每个影片剪辑图形性能有了新的 readGraphicsData 的功能,这给所有的图形命令(矢量IGraphicsData )来绘制整个MC。并重复这些命令,如果我改变每 BitmapFill会将命令顺利参数设置为true,重绘了MC,它会是平滑,美观大方。 而已。不是很快,但工作。

Edit (Jan 23 '14): I found solution for it. It is not fast, and required Flash Player 11.6. Every MovieClip graphics properties has a new readGraphicsData function, which give all the graphics commands (Vector IGraphicsData) to draw the whole MC. And iterate in these commands, if I change every bitmapFill command smooth parameter to true, and redraw the MC, it will be smoothed, and nice. That's it. Not fast, but working.

推荐答案

我找到解决方案了。它并不快,而且需要的Flash Player 11.6。每个影片剪辑图形性能有了新的 readGraphicsData 的功能,这给所有的图形命令(矢量IGraphicsData )来绘制整个MC。并重复这些命令,如果我改变每 BitmapFill会将命令顺利参数设置为true,重绘了MC,它会是平滑,美观大方。 而已。不是很快,但工作。

I found solution for it. It is not fast, and required Flash Player 11.6. Every MovieClip graphics properties has a new readGraphicsData function, which give all the graphics commands (Vector IGraphicsData) to draw the whole MC. And iterate in these commands, if I change every bitmapFill command smooth parameter to true, and redraw the MC, it will be smoothed, and nice. That's it. Not fast, but working.

这篇关于可平滑图像加载的SWF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆