Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要设置图像的不透明度并使用 iTextSharp 将其添加到 PDF 中。我查看了http://itextpdf.com/examples/但找不到任何这样做的工作示例。
任何人都可以帮助我或指导我找到正确的资源。
//create new graphics state and assign opacity PdfGState graphicsState = new PdfGState(); graphicsState.FillOpacity = 0.2F; // (or whatever) //set graphics state to pdfcontentbyte pdfData.SetGState(graphicsState);