闪光倒置的面具

编程入门 行业动态 更新时间:2024-10-12 20:28:12
本文介绍了闪光倒置的面具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我一直在寻找一种简单的方法来反转闪光灯中的面具。它只是惊人的,它没有这个功能。

我只是真的需要绘制形状,下面的任何东西(层)不会显示出来。

有什么建议?

解决方案

要在代码中创建一个反转蒙版,请执行以下操作:

在Flash Professional IDE中创建反转蒙版选择选择Display - >Blending - >Layer然后选择你的蒙版,并选择Display  - >Blending - >Erase你会看到这样的: 

I've been looking for a simple way to invert a mask in flash. Its just amazing how it doesn't have this feature.

I just really need to paint shape and whatever is below (in layers) wont show up.

Any suggestions?

解决方案

To create an inverted mask in code do the following

private function createInvertedMask(mcToBeMasked:MovieClip):void { mcToBeMasked.blendMode = BlendMode.LAYER; var invertedMask:Sprite = new Sprite(); invertedMask.graphics.beginFill(0x0, 1); invertedMask.graphics.drawRect(640, 395, 630, 395); invertedMask.blendMode = BlendMode.ERASE; mcToBeMasked.addChild(invertedMask); }

To create an inverted mask in the Flash Professional IDE Choose the properties panel of the image you want masked, select "Display" -> "Blending" -> "Layer" Then select your mask, and choose "Display -> "Blending" -> "Erase" You'll see something like this:

更多推荐

闪光倒置的面具

本文发布于:2023-11-02 03:46:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:面具   闪光

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!