|
The following code adds two ovals to a document. The outline
oval is semi-transparent.
using var doc = new Doc();
doc.Width = 80;
doc.Rect.Inset(50, 50);
doc.Color.String = "255 0 0";
doc.AddOval(true);
doc.Color.String = "0 255 0 128";
doc.AddOval(false);
doc.Save("docaddoval.pdf");

docaddoval.pdf
Also see example code in: XColor Components
Property, ColorSpace
Gamma Property, ColorSpace
WhitePoint Property,
SwfImportOperation Import Function.
|