|
Bytescout.PDF library for .NET
- using transparency settings for drawings
Drawing transparent objects using Bytescout.PDF drawing
API functions
This example demonstrates how to add drawings with alpha transparency into PDF document using Bytescout.PDF library
using System; namespace HelloWorld // Add new document // Append new page to the document // Create new drawing // Line width // Set Line Width // Save the current graphics state on the graphics state
stack // Create new graphic state // Set fill alpha blending to 30%
// Set fill color // Draw rectangle // Fill and stroke rectangle // Restore the current graphics state from the graphics
state stack drawing.StateStore(); // Create new graphic state // Set alpha blending to shapes // Set graphic state as current // Create green fill color // Set fill color // Create new path // Restore the current graphics state from the graphics
state stack // Closing drawing on the page // Save document // open generated PDF document in default PDF viewer installed
in Windows Download example source code: bytescoutpdf/bytescoutpdf_transparent_drawings.zip (4 KB)
"Hello, World!" quick start step-by-step tutorials: |
|
|
Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|