Graphics

Docotic.Pdf Library Help > Samples > Graphics
Docotic.Pdf documentation

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.

Lines and Curves

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

Shapes

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

Graphics state

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

Paths

    This sample shows how to construct and use graphics path.

Clipping

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

Colors

    This sample shows how to use colors.

Color profiles

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

Patterns

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

Transparency

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

Blend modes

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