SetAdvancedColor
Overview
SetAdvancedColor is a class in Aspose.PDF FOSS for .NET.
Inherits from: BasicSetColorAndPatternOperator.
scn — Set color (with optional pattern name) in current color space (non-stroking).
This class declares 13 methods for SetAdvancedColor objects in .NET programs.
Available methods include: Accept, IsTextShowOperator, SetAdvancedColor, ToPdf, ToString, ValueEquals, getColor.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Color, CommandName, Index, PatternName.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Color | double[] | Read | Gets the fill color components, written before the optional pattern name. |
PatternName | string? | Read | Gets the pattern name. |
CommandName | string | Read | The PDF command name (last token of the serialised form, e.g. |
Index | int | Read/Write | 1-based position of this operator within its containing OperatorCollection. |
Methods
| Signature | Description |
|---|---|
SetAdvancedColor() | Creates an scn operator with no color components and no pattern. |
SetAdvancedColor(g: double) | Creates an scn operator with one component, such as a gray level, and no pattern. |
SetAdvancedColor(patternName: string) | Creates an scn operator that selects the named pattern resource (without the leading slash) with no color components. |
SetAdvancedColor(g: double, patternName: string) | Creates an scn operator with one component and the named pattern resource (without the leading slash); a null name writes no pattern. |
SetAdvancedColor(colors: double[], patternName: string) | Creates an scn operator with the given components (a null array gives none) and the named pattern resource (without the leading slash); a null name writes no pattern. |
SetAdvancedColor(r: double, g: double, b: double, patternName: string) | Creates an scn operator with three components, such as red, green and blue, and the named pattern resource (without the leading slash); a null name writes no pattern. |
SetAdvancedColor(c: double, m: double, y: double, k: double, patternName: string) | Creates an scn operator with four components, such as cyan, magenta, yellow and black, and the named pattern resource (without the leading slash); a null name writes no pattern. |
ToPdf() | Calls ToPdf on this SetAdvancedColor instance. |
Accept(visitor: IOperatorSelector) | Calls Accept(visitor) on this SetAdvancedColor instance. |
getColor() | Calls getColor on this SetAdvancedColor instance. |
ToString() | Default string form is the PDF serialisation, so callers (test helpers, debug logs) get the same content-stream text whether they hold an unparsed RawOperator or a typed subclass. |
IsTextShowOperator(op: Operator) | True when op is a text-showing operator (Tj / TJ / ’ / " — concrete subclasses of TextShowOperator). |
ValueEquals(op: Operator) | True when this operator’s serialised PDF form equals op’s. |