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

ArcSegment Represents a non-rotated elliptical arc segment in a Figure (or a complete ellipse, if SweepAngle is 360).
BezierSegment Represents a path segment in a Figure, consisting of zero, one, or more cubic Bézier curves.
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.
Figure Represents a geometric figure in a Path, composed of a sequence of path segments.
LineSegment Represents a path segment in a Figure, defined by a sequence of points connected by straight lines.
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.
PathSegment Represents a path segment in a Figure. This is an abstract class that cannot be inherited outside the declaring assembly, so its actual type is always one of the derived types: LineSegment, BezierSegment or ArcSegment.
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.