# PdfNetStack.Drawing namespace

> Types in the PdfNetStack.Drawing namespace of the PdfNetStack package: every class, struct and enum, with a one line summary.

Package: `PdfNetStack`

### Classes

 [PdfBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfbrush/)

How shapes are filled: a solid color or a gradient.

 [PdfForm](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfform/)

A reusable drawing (a form XObject, ISO 32000-1, 8.10): drawn once, placed any number of times
with [DrawForm](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphics/#PdfNetStack_Drawing_PdfGraphics_DrawForm_PdfNetStack_Drawing_PdfForm_System_Double_System_Double_System_Double_System_Double_). Use it for
stamps, letterheads and repeated logos, or with [FromPage](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfform/#PdfNetStack_Drawing_PdfForm_FromPage_PdfNetStack_PdfDocument_PdfNetStack_PdfPage_) to place a page of any
document, scaled and positioned, on another page.

 [PdfGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgradientbrush/)

Base of linear and radial gradients.

 [PdfGraphics](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphics/)

A drawing surface on a page. Coordinates are in points with the origin at the top left corner
of the media box and y pointing down. Dispose it, or save the document, to write the drawing
into the page. Not thread safe.

 [PdfHyphenator](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfhyphenator/)

Finds where words may break with a hyphen, by Liang's pattern algorithm as TeX defines it
(Liang 1983, and The TeXbook, appendix H). Give one to [Hyphenator](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfparagraph/#PdfNetStack_Drawing_PdfParagraph_Hyphenator)
to hyphenate a paragraph, or use [InsertSoftHyphens](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfhyphenator/#PdfNetStack_Drawing_PdfHyphenator_InsertSoftHyphens_System_String_) on text of your own. The core
library has the algorithm and no patterns: the <code>PdfNetStack.Hyphenation</code> package has them
for many languages, and [Create](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfhyphenator/#PdfNetStack_Drawing_PdfHyphenator_Create_System_Collections_Generic_IEnumerable_System_String__System_Collections_Generic_IEnumerable_System_String__) takes any others.

 [PdfImage](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfimage/)

A JPEG, PNG, GIF, BMP, TIFF or WebP image to draw with
[DrawImage](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphics/#PdfNetStack_Drawing_PdfGraphics_DrawImage_PdfNetStack_Drawing_PdfImage_System_Double_System_Double_System_Double_System_Double_). The image is
written once per document however often it is drawn, and can be shared between documents and
threads.

 [PdfLinearGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdflineargradientbrush/)

A gradient along a line between two points, in canvas coordinates.

 [PdfParagraph](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfparagraph/)

Rich text to lay out: spans of text, each with its own style, and how lines are arranged. Line
feeds (\n, \r\n) and U+2029 start a new line; tabs advance four spaces; soft hyphens (U+00AD)
mark where a word may break, showing a hyphen when it does.

 [PdfPath](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpath/)

A shape made of straight and curved segments, in canvas coordinates (origin top left, y down).
Build it, then draw, fill or clip with it through [PdfGraphics](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphics/).

 [PdfPen](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpen/)

How lines and outlines are stroked. Immutable; use <code>with</code> to derive variants.

 [PdfRadialGradientBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfradialgradientbrush/)

A gradient between two circles, in canvas coordinates. With the same center and a start radius
of 0 it is the usual circular gradient.

 [PdfSolidBrush](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfsolidbrush/)

Fills with one color.

 [PdfSvg](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfsvg/)

An SVG drawing, placed as vector graphics: it stays sharp at any zoom and its text stays text.
Each drawing is written once per document and reused wherever it is placed. Supported: shapes,
paths, groups, use and symbol, nested viewports, solid colors and linear and radial gradients,
clip paths, opacity, text in the standard fonts, embedded JPEG and PNG images, and style
sheets with type, class and id selectors. Not supported: filters, masks, patterns, external
references and animation.

 [PdfTextLayout](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdftextlayout/)

A paragraph broken into lines for a given width: the Unicode line breaking algorithm finds
break opportunities, the bidirectional algorithm orders each line, and an OpenType shaper
forms the glyphs. Measure with it, then draw it with [DrawText](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphics/#PdfNetStack_Drawing_PdfGraphics_DrawText_PdfNetStack_Drawing_PdfTextLayout_System_Double_System_Double_).

 [PdfTextLine](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdftextline/)

One line of a [PdfTextLayout](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdftextlayout/). Distances are points from the layout's top left corner.

 [PdfTextStyle](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdftextstyle/)

How a span of text looks: font, size, paint and decorations.

### Structs

 [PdfColor](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolor/)

A device color with an opacity. Components are 0 to 1. Opacity below 1 is written as a
constant alpha graphics state.

 [PdfCornerRadii](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcornerradii/)

Corner radii of a rounded rectangle, each with a horizontal and a vertical radius.

 [PdfGradientStop](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgradientstop/)

One color stop of a gradient.

 [PdfGraphicsState](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphicsstate/)

A saved graphics state; disposing it restores the state, along with any saved after it.

 [PdfMatrix](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfmatrix/)

A 2D affine transform in PDF order [a b c d e f]: x' = a x + c y + e, y' = b x + d y + f.

 [PdfPoint](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfpoint/)

A point in canvas coordinates.

### Enums

 [PdfBlendMode](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfblendmode/)

How drawing combines with what is under it (ISO 32000-1, 11.3.5; the CSS mix-blend-mode values).

 [PdfColorSpace](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolorspace/)

Color model of a [PdfColor](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfcolor/), written as the matching PDF device color space.

 [PdfFillRule](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdffillrule/)

Which regions of a self-intersecting or nested path count as inside.

 [PdfGraphicsLayer](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfgraphicslayer/)

Where new drawing goes relative to a page's existing content.

 [PdfImageAlignment](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfimagealignment/)

Where an image sits in its box when it does not fill it exactly.

 [PdfImageFit](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfimagefit/)

How an image fills a box of another shape (the CSS object-fit values).

 [PdfImageFormat](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdfimageformat/)

The file format an image came from.

 [PdfLineCap](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdflinecap/)

Shape at the open ends of stroked lines.

 [PdfLineJoin](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdflinejoin/)

Shape where two stroked segments meet.

 [PdfTextAlignment](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdftextalignment/)

Horizontal alignment of the lines of a paragraph.

 [PdfTextDirection](https://www.jadev-corp.com/api/pdfnetstack-drawing/pdftextdirection/)

Base direction of a paragraph.

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/
