【发布时间】:2018-01-22 14:46:20
【问题描述】:
我想要实现的是使用 itextsharp 隐藏图像(通过不透明度或透明度)。到目前为止,图像显示如下:
string webURL = "X:/XXXXXX/web.png";
iTextSharp.text.Image webIcon = iTextSharp.text.Image.GetInstance(webURL);
webIcon.Annotation = new Annotation(0,0,0,0, "http://www.xxxxx.com");
webIcon.ScaleAbsolute(35f, 35f);
webIcon.SetAbsolutePosition(227,23);
webIcon.Transparency = new int[] {0,0 };
//state.FillOpacity = 0.2f;
//webIcon.GrayFill = 0.2f;
doc.Add(webIcon);
如何更改透明度以使图像的可见性为空?
【问题讨论】:
-
不应该将透明度设置为高值以基本隐藏它吗?
-
@MihaiOvidiuDrăgoi 甚至尝试使用 {100,100};
标签: c# asp.net-mvc itext