PSD到WPF XAML:导入混乱 [英] PSD to WPF XAML: Import is messed up

查看:451
本文介绍了PSD到WPF XAML:导入混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在让Designer设计一些Photoshop中的元素,然后计划将其用于在Visual Studio中构建应用程序.当我尝试将PSD文件导入Blend时,这是一场噩梦.

I'm having a Designer come up with some elements in Photoshop, which I then plan to use to build an app in Visual Studio. When I try to import the PSD file into Blend, it's a nightmare though.

使用剪切蒙版制作了大多数元素,我可以合并它们并使它在XAML中看起来一样,但是随后我失去了所有编辑选项,因为这只是一大块.如果不合并图层,则导入的元素将不带有剪贴蒙版,而剪贴蒙版看起来太可怕了.

Having made most elements using clipping masks, I can either merge them and have it look the same in XAML, but then I lose all the editing options as it's just one big block. If I don't merge the layers, I have the elements imported without the clipping mask which just looks horrible.

我知道导入实际上并不支持剪切蒙版(严重是...?),那么这里的最佳方法是什么?我确定我不是第一个遇到此问题的人,但是我似乎在网上找不到任何有关解决方案的信息.

I know the import doesn't actually support clipping masks (seriously...?), so what's the best approach here? I'm sure I'm not the first one with this problem, however I can't seem to find ANYTHING on the web regarding a solution.

应该更改PSD还是在导入期间更改某些内容的方法?

Should the PSD be changed or is the a way to change something during import?

非常感谢, 克里斯

推荐答案

如果您的设计师在Photoshop中制作资产,那么您将遇到各种各样的问题,尤其是一旦开始处理各种可能的分辨率等问题时,您最终将尝试解决将图像文件嵌入到ViewBox等问题的情况.该路由的可用性没有那么大的灵活性.

If your designer is making your assets in Photoshop than you're going to run into all sorts of issues especially once you start dealing in the varying possible resolutions etc, which you'll end up trying to counter with things like embedding the image files into ViewBox etc. There's not as much flexibility in usability with that route.

我的建议是,除非确实有必要在工作中使用Photoshop资产,而是在Illustrator中创建资产,然后使用导出到Actual Pure XAML转换器(例如

My suggestion, would be unless it's really necessary to use Photoshop assets in your work, create your assets in Illustrator instead and use an export to Actual Pure XAML converter like Mike Swansons AI to XAML tool (which is quite handy) then you'll be dealing with real XAML and vectors so you can take those assets and do a lot more with them in regards to things like Transforms, Storyboards, Property changes, etc. Plus it will all be vectored art so you can play with sizes /shapes to your hearts content and not lose the crisp lines and resolution.

希望这会有所帮助.

这篇关于PSD到WPF XAML:导入混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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