我试图创建一个图像,我想要以下列方式包含JPG图像的一部分:我想要在边缘上有“外部”部分的JPG,以便它在图像上不透明边缘和中间透明(我的图像的主要部分)。 我已经尝试了以下内容:1.向jpg本身添加径向不透明度渐变,就好像它是基于矢量的对象一样。 2.用一个渐变渐变创建一个Inkscape对象,然后用jpg做一个Clip> Set。
这些都无效(显然)。 有没有办法在Inkscape中做到这一点? 我所有的尝试都没有做任何事情,或者只能成功地改变图像的不透明度(没有渐变)。
I'm trying to create an image where I'd like to include part of a jpg image in the following way: I'd like to have the "outer" part of the jpg at the fringes, so that it is opaque on the edges and transparent in the middle (where the main part of my image is). I've tried the following: 1. Adding a radial opacity gradient to the jpg itself as if it were a vector-based object. 2. Creating an Inkscape object with an analagous gradient and then doing a Clip>Set with the jpg.
Neither of these worked (obviously). Is there a way to do this in Inkscape? all of my attempts have either done nothing, or have only succeeded in changing the opacity of the image uniformly (without a gradient).
最满意答案
您想要的功能称为“遮蔽”,您可以在Inkscape的菜单中的Clip下找到它。
面具对象越黑或越透明,它越多地隐藏下面的内容。 所以你需要一个从中心黑色到外围白色的渐变。
其余的工作就像裁剪。
The feature you want is called Masking, you can find it right below Clip in the menu in Inkscape.
The darker or more transparent the mask object is, the more it hides from what is below. So you need a gradient that goes from black in the center to white at the outer perimeter.
The rest works just like clipping.
更多推荐
发布评论