Flash CS3 的轮廓问题

发布于 2024-09-16 16:43:38 字数 114 浏览 2 评论 0原文

我的 Flash 作品有问题。我正在矢量扑克牌面。我的问题是,即使我使用最细的笔划(0.1),当我缩小页面时,线条会变粗,这在 Flash 游戏中看起来很糟糕。谁能告诉我如何才能使笔画在外观上相同,即使我缩小页面?

im having problems with my artwork in flash. I am vectoring playing card faces. My problem is, even if Im using the thinnest stroke which is 0.1, when i zoom out the page, the line becomes thick which looks bad in the flash game. Can anyone tell me how i can make the stroke be the same in appearance even if I zoom out the page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你另情深 2024-09-23 16:43:38

至少在Flash CS5中(我认为在CS4中也是如此,但我不确定)你可以将笔划缩放从“正常”设置为“无”,这会导致你想要的效果(缩放时笔划不被缩放)在)。

At least in Flash CS5 (and i think in CS4 too, but i'm not sure) you can set stroke scaling from "normal" to "none", which results in the effect you're after (strokes not being scaled when zooming in).

走走停停 2024-09-23 16:43:38

您应该使此笔划取决于应用程序的大小,因此您应该有一些大小更改事件处理程序,并抛出显示的卡片列表,并更改每个笔划。

但世界都喜欢简单的事情,恕我直言,我更喜欢在 Flex 4 中使用这样的代码:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<s:Group id="yourCard" width="30%" height="40%">
    <s:Rect top="0" bottom="0" left="0" right="0">
        <s:stroke>
            <s:SolidColorStroke weight="{this.width/YOUR_KOEFFICIENT}"/>
        </s:stroke>
        <s:fill>
            <s:BitmapFill source="your_image_here.png"/>
        </s:fill>
    </s:Rect>
</s:Group>
</s:Application>

you should make this stroke depends of application sizes, so you should have some size change events handler, and go throw list of showed cards, and change each stroke.

but the world is liking easy things, imho I'd prefer to use such code for Flex 4:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<s:Group id="yourCard" width="30%" height="40%">
    <s:Rect top="0" bottom="0" left="0" right="0">
        <s:stroke>
            <s:SolidColorStroke weight="{this.width/YOUR_KOEFFICIENT}"/>
        </s:stroke>
        <s:fill>
            <s:BitmapFill source="your_image_here.png"/>
        </s:fill>
    </s:Rect>
</s:Group>
</s:Application>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文