Table of Contents

Method CreateUncoloredPattern

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

CreateUncoloredPattern(double, double, PdfColorSpace)

Creates a new uncolored tiling pattern using the specified dimensions and color space.

public PdfTilingPattern CreateUncoloredPattern(double width, double height, PdfColorSpace colorSpace)

Parameters

width double

The width of pattern cells in pixels.

height double

The height of pattern cells in pixels.

colorSpace PdfColorSpace

The PdfColorSpace that defines the color space used for later coloring the pattern.

Returns

PdfTilingPattern

The newly created uncolored PdfTilingPattern.

Remarks

An uncolored pattern contains no predefined color data. To color it, create a color using the specified color space and apply it with the canvas pen or brush before using the pattern.

Use the resulting PdfTilingPattern for stroking lines and shapes or filling areas on a canvas.

Check out the sample code to learn how to prepare a pattern and use it for stroking lines, outlining shapes, and filling canvas areas.

Exceptions

ArgumentNullException

colorSpace is null.