DrawingOptions Class

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.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
C#
public sealed class DrawingOptions
Inheritance
Object    DrawingOptions

Constructors

DrawingOptions Initializes a new instance of the DrawingOptions class.

Properties

AlphaBlending Gets or sets whether alpha blending is enabled when drawing shapes.
Default value: .

See the online help for image examples.
AntiAliasing Gets or sets whether anti-aliasing is enabled when drawing shapes.
Default value: .

See the online help for image examples.
CacheRegionLimit Gets or sets the maximum pixel size for caching the region of a Path instance. If the region has more pixels than this value, it will be re-scanned in each drawing session.
Default value: 16777216, which is 16 MB for anti-aliased regions or 2 MB for aliased regions.
Ditherer Gets or sets an IDitherer instance to use when drawing shapes.
Default value: .

See the online help for an example with images.
DrawPathPixelOffset Gets or sets the pixel offset to use before applying the Pen.Width when drawing a shape.
Default value: None.

See the online help for image examples.
FastThinLines Gets or sets whether drawing Paths and primitive shapes with thin lines are drawn with a faster algorithm when AntiAliasing is .
Default value: .

See the online help for image examples.
FillMode Gets or sets the fill mode to use when filling shapes.
Default value: Alternate.

See the online help for image examples.
Quantizer Gets or sets an IQuantizer instance to use when drawing shapes.
Default value: .
See the Examples section of the Ditherer property for an example.
ScanPathPixelOffset Gets or sets the pixel offset to use for the scanlines when scanning the region of a Path instance.
Default value: Half.

See the online help for image examples.
Transformation Gets or sets the transformation matrix to apply when drawing shapes.
Default value: TransformationMatrix.Identity.

See the online help for an example with image.

Methods

Equals Determines whether the specified Object is equal to this DrawingOptions instance.
(Overrides ObjectEquals(Object))
GetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)

See Also