Skip to content

Latest commit

 

History

History

Graphics

Graphics

This group contains samples that show how to use Docotic.Pdf library to draw various shapes using colors, patterns and color profiles. There are also samples for graphics path construction and clipping, transparency and blending, and also for watermarks usage.

Don't miss all other samples.

Blend modes

This sample shows how to customize a way in which semi-transparent objects will blend on a canvas.

Clipping

This sample shows how to use current graphics path as a clip region of a canvas.

Color profiles

This sample shows how to load an ICC profile and then create and use a color with that color profile.

Colors

This sample shows how to use colors.

Extract paths

This sample shows how to extract vector paths from a page and copy them to a new document.

Graphics state

This sample shows how to save and restore graphics state using PdfCanvas.SaveState and PdfCanvas.RestoreState methods.

Lines and Curves

This sample shows how to draw straight lines and cubic Bezier curves.

Paths

This sample shows how to construct and use graphics path.

Patterns

This sample shows how to use colored and uncolored tiling patterns.

Remove paths

This sample shows how to remove vector paths drawn on a PDF page.

Shapes

This sample shows how to draw geometrical shapes, such as circles, ellipses, rectangles and rounded rectangles using PdfCanvas class.

Transparency

This sample shows how to draw on a canvas using semi-transparent colors.