Table of Contents

Namespace PaintDotNet.Gdi

Classes

GdiControl

A control that does its painting in WM_PAINT via GDI calls, completely bypassing System.Drawing (GDI+) and WinForm's built-in painting mechanisms. You will need to implement your own interop definitions to paint using GDI. Use of the TerraFX.Interop.Windows nuget package is highly recommended.

The IGdiPaintContext passed to OnGdiPaint(IGdiPaintContext) implements the IDeviceContext interface, which is accepted by some rendering code in the System.Windows.Forms namespaces, such as ButtonRenderer, TextRenderer, and VisualStyleRenderer.

This class primarily exists to serve as the base class for Direct2DControl.

Structs

GdiLogFont

A logical font description.

Interfaces

IGdiPaintContext

Enums

GdiCharSet
GdiClipPrecision
GdiFontFamily
GdiFontQuality
GdiFontWeight
GdiMetafileRecordType

The type of a GDI metafile record. This enum may not be exhaustive; it does not include record types that were defined after this enum was created or updated.

GdiOutputPrecision
GdiPitch