Inkscape:jpgs上的径向不透明渐变(Inkscape: radial opacity gradients on jpgs)

编程入门 行业动态 更新时间:2024-10-23 04:54:17
Inkscape:jpgs上的径向不透明渐变(Inkscape: radial opacity gradients on jpgs)

我试图创建一个图像,我想要以下列方式包含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.

更多推荐

本文发布于:2023-04-28 02:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1330279.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不透明   jpgs   Inkscape   gradients   opacity

发布评论

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

>www.elefans.com

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