Class PdfPatternCanvas
A PdfCanvas instance with an inherent tiling pattern.
public class PdfPatternCanvas : PdfCanvas
- Inheritance
-
PdfPatternCanvas
- Inherited Members
Constructors
PdfPatternCanvas(Tiling, PdfDocument)
Creates PdfPatternCanvas for a document from a provided Tiling pattern
public PdfPatternCanvas(PdfPattern.Tiling pattern, PdfDocument document)
Parameters
pattern
PdfPattern.TilingThe Tiling pattern must be colored
document
PdfDocumentThe document that the resulting content stream will be written to
PdfPatternCanvas(PdfStream, PdfResources, PdfDocument)
Creates PdfPatternCanvas from content stream of page, form XObject, pattern etc.
public PdfPatternCanvas(PdfStream contentStream, PdfResources resources, PdfDocument document)
Parameters
contentStream
PdfStreamThe content stream
resources
PdfResourcesThe resources, a specialized dictionary that can be used by PDF instructions in the content stream
document
PdfDocumentThe document that the resulting content stream will be written to
Methods
SetColor(PdfColorSpace, float[], PdfPattern, bool)
public override PdfCanvas SetColor(PdfColorSpace colorSpace, float[] colorValue, PdfPattern pattern, bool fill)
Parameters
colorSpace
PdfColorSpacecolorValue
float[]pattern
PdfPatternfill
bool