Method CreateColoredPattern
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
CreateColoredPattern(double, double)
Creates a new colored tiling pattern using the specified dimensions.
public PdfTilingPattern CreateColoredPattern(double width, double height)
Parameters
width
doubleThe width of pattern cells in pixels.
height
doubleThe height of pattern cells in pixels.
Returns
- PdfTilingPattern
The newly created colored PdfTilingPattern.
Remarks
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.