KGySoft.Drawing.Shapes Namespace

The KGySoft.Drawing.Shapes namespace provides types and extension methods for drawing and filling shapes on IReadWriteBitmapData instances.
See the properties of the DrawingOptions class, and the Remarks section of the Brush, Pen and Path classes for examples with images.

Classes

BitmapDataExtensions Provides extension methods for the IReadWriteBitmapData type that are related to shape drawing and filling.
Brush Represents a brush for shape filling operations. Use the static Create... methods to create an instance.

See the online help for image examples.
DrawingOptions Provides options for drawing and filling shapes. See the description of the properties for details and examples. The default options (which is also used when is passed to the drawing methods) uses alpha blending but no anti-aliasing, and uses fast shape-filling and thin path drawing strategies.
Path Represents the path of a custom shape to be drawn or filled. The path can consist of multiple open or closed figures.

See the online help for an example with image.
Pen Represents a pen for drawing operations.

See the online help for image examples.

Structures

TransformationMatrix Represents a 3x2 matrix for 2D transformations. It's similar to Matrix3x2; in fact, on platforms where it is available, it uses a Matrix3x2 internally.

Enumerations

GradientWrapMode Represents the mode how a gradient is treated when the gradient area is exceeded.

See the online help for image examples.
LineCapStyle Represents the possible styles for the ends of open figures.
See the Examples section of the Pen class for image examples.
LineJoinStyle Represents the possible styles for joining two lines.
See the Examples section of the Pen class for image examples.
PixelOffset Represents pixel offset strategies for the DrawingOptions.ScanPathPixelOffset and DrawingOptions.DrawPathPixelOffset properties.
See the Remarks section of the DrawingOptions.ScanPathPixelOffset and DrawingOptions.DrawPathPixelOffset properties for details and image examples.
ShapeFillMode Specifies how to the interior of a path is filled when it contains intersecting edges. If a path has no intersecting edges, then both strategies produce the same result.
See the Remarks section of the DrawingOptions.FillMode property for image examples.
TextureMapMode Represents the possible modes how a texture is mapped when filling a shape by a texture Brush.

See the online help for image examples.