C# Class ImageMagick.Drawables

Mostra file Open project: dlemstra/Magick.NET Class Usage Examples

Public Methods

Method Description
Affine ( Matrix matrix ) : Drawables

Creates a new DrawableAffine instance using the specified Matrix.

Affine ( double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY ) : Drawables

Creates a new DrawableAffine instance.

Alpha ( double x, double y, PaintMethod paintMethod ) : Drawables

Creates a new DrawableOpacity instance.

Arc ( double startX, double startY, double endX, double endY, double startDegrees, double endDegrees ) : Drawables

Creates a new DrawableArc instance.

Bezier ( ) : Drawables

Creates a new DrawableBezier instance.

Bezier ( IEnumerable coordinates ) : Drawables

Creates a new DrawableBezier instance.

BorderColor ( Color color ) : Drawables

Creates a new DrawableColor instance.

BorderColor ( MagickColor color ) : Drawables

Creates a new DrawableColor instance.

Circle ( double originX, double originY, double perimeterX, double perimeterY ) : Drawables

Creates a new DrawableCircle instance.

ClipPath ( string clipPath ) : Drawables

Creates a new DrawableClipPath instance.

ClipRule ( FillRule fillRule ) : Drawables

Creates a new DrawableClipRule instance.

ClipUnits ( ClipPathUnit units ) : Drawables

Creates a new DrawableClipUnits instance.

Color ( double x, double y, PaintMethod paintMethod ) : Drawables

Creates a new DrawableColor instance.

Composite ( MagickGeometry offset, CompositeOperator compose, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Composite ( MagickGeometry offset, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Composite ( double x, double y, CompositeOperator compose, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Composite ( double x, double y, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Density ( System.Drawing.PointD pointDensity ) : Drawables

Creates a new DrawableDensity instance.

Density ( double density ) : Drawables

Creates a new DrawableDensity instance.

Ellipse ( double originX, double originY, double radiusX, double radiusY, double startDegrees, double endDegrees ) : Drawables

Creates a new DrawableEllipse instance.

FillColor ( Color color ) : Drawables

Creates a new DrawableFillColor instance.

FillColor ( MagickColor color ) : Drawables

Creates a new DrawableFillColor instance.

FillOpacity ( Percentage opacity ) : Drawables

Creates a new DrawableFillOpacity instance.

FillPatternUrl ( string url ) : Drawables

Creates a new DrawableFillPatternUrl instance.

FillRule ( FillRule fillRule ) : Drawables

Creates a new DrawableFillRule instance.

Font ( string family ) : Drawables

Creates a new DrawableFont instance.

Font ( string family, FontStyleType style, FontWeight weight, FontStretch stretch ) : Drawables

Creates a new DrawableFont instance.

FontPointSize ( double pointSize ) : Drawables

Creates a new DrawablePointSize instance.

Gravity ( Gravity gravity ) : Drawables

Creates a new DrawableGravity instance.

Line ( double startX, double startY, double endX, double endY ) : Drawables

Creates a new DrawableLine instance.

Path ( ) : Drawables

Creates a new DrawablePath instance.

Path ( IEnumerable paths ) : Drawables

Creates a new DrawablePath instance.

Point ( double x, double y ) : Drawables

Creates a new DrawablePoint instance.

Polygon ( ) : Drawables

Creates a new DrawablePolygon instance.

Polygon ( IEnumerable coordinates ) : Drawables

Creates a new DrawablePolygon instance.

Polyline ( ) : Drawables

Creates a new DrawablePolyline instance.

Polyline ( IEnumerable coordinates ) : Drawables

Creates a new DrawablePolyline instance.

PopClipPath ( ) : Drawables

Creates a new DrawablePopClipPath instance.

PopGraphicContext ( ) : Drawables

Creates a new DrawablePopGraphicContext instance.

PopPattern ( ) : Drawables

Creates a new DrawablePopPattern instance.

PushClipPath ( string clipPath ) : Drawables

Creates a new DrawablePushClipPath instance.

PushGraphicContext ( ) : Drawables

Creates a new DrawablePushGraphicContext instance.

PushPattern ( string id, double x, double y, double width, double height ) : Drawables

Creates a new DrawablePushPattern instance.

Rectangle ( Rectangle rectangle ) : Drawables

Creates a new DrawableRectangle instance.

Rectangle ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables

Creates a new DrawableRectangle instance.

Rotation ( double angle ) : Drawables

Creates a new DrawableRotation instance.

RoundRectangle ( double centerX, double centerY, double width, double height, double cornerWidth, double cornerHeight ) : Drawables

Creates a new DrawableRoundRectangle instance.

Scaling ( double x, double y ) : Drawables

Creates a new DrawableScaling instance.

SkewX ( double angle ) : Drawables

Creates a new DrawableSkewX instance.

SkewY ( double angle ) : Drawables

Creates a new DrawableSkewY instance.

StrokeAntialias ( bool isEnabled ) : Drawables

Creates a new DrawableStrokeAntialias instance.

StrokeColor ( Color color ) : Drawables

Creates a new DrawableStrokeColor instance.

StrokeColor ( MagickColor color ) : Drawables

Creates a new DrawableStrokeColor instance.

StrokeDashArray ( ) : Drawables

Creates a new DrawableDashArray instance.

StrokeDashOffset ( double offset ) : Drawables

Creates a new DrawableStrokeDashOffset instance.

StrokeLineCap ( LineCap lineCap ) : Drawables

Creates a new DrawableStrokeLineCap instance.

StrokeLineJoin ( LineJoin lineJoin ) : Drawables

Creates a new DrawableStrokeLineJoin instance.

StrokeMiterLimit ( int miterlimit ) : Drawables

Creates a new DrawableMiterLimit instance.

StrokeOpacity ( Percentage opacity ) : Drawables

Creates a new DrawableStrokeOpacity instance.

StrokePatternUrl ( string url ) : Drawables

Creates a new DrawableStrokePatternUrl instance.

StrokeWidth ( double width ) : Drawables

Creates a new DrawableStrokeWidth instance.

Text ( double x, double y, string value ) : Drawables

Creates a new DrawableText instance.

TextAlignment ( TextAlignment alignment ) : Drawables

Creates a new DrawableTextAntialias instance.

TextAntialias ( bool isEnabled ) : Drawables

Creates a new DrawableTextAntialias instance.

TextDecoration ( TextDecoration decoration ) : Drawables

Creates a new DrawableTextDecoration instance.

TextDirection ( TextDirection direction ) : Drawables

Creates a new DrawableTextDirection instance.

TextEncoding ( Encoding encoding ) : Drawables

Creates a new DrawableTextEncoding instance.

TextInterlineSpacing ( double spacing ) : Drawables

Creates a new DrawableTextInterlineSpacing instance.

TextInterwordSpacing ( double spacing ) : Drawables

Creates a new DrawableTextInterwordSpacing instance.

TextKerning ( double kerning ) : Drawables

Creates a new DrawableTextKerning instance.

TextUnderColor ( Color color ) : Drawables

Creates a new DrawableTextUnderColor instance.

TextUnderColor ( MagickColor color ) : Drawables

Creates a new DrawableTextUnderColor instance.

Translation ( double x, double y ) : Drawables

Creates a new DrawableTranslation instance.

Viewbox ( Rectangle rectangle ) : Drawables

Creates a new DrawableViewbox instance.

Viewbox ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables

Creates a new DrawableViewbox instance.

Method Details

Affine() public method

Creates a new DrawableAffine instance using the specified Matrix.
public Affine ( Matrix matrix ) : Drawables
matrix System.Drawing.Drawing2D.Matrix The matrix.
return Drawables

Affine() public method

Creates a new DrawableAffine instance.
public Affine ( double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY ) : Drawables
scaleX double The X coordinate scaling element.
scaleY double The Y coordinate scaling element.
shearX double The X coordinate shearing element.
shearY double The Y coordinate shearing element.
translateX double The X coordinate of the translation element.
translateY double The Y coordinate of the translation element.
return Drawables

Alpha() public method

Creates a new DrawableOpacity instance.
public Alpha ( double x, double y, PaintMethod paintMethod ) : Drawables
x double The X coordinate.
y double The Y coordinate.
paintMethod PaintMethod The paint method to use.
return Drawables

Arc() public method

Creates a new DrawableArc instance.
public Arc ( double startX, double startY, double endX, double endY, double startDegrees, double endDegrees ) : Drawables
startX double The starting X coordinate of the bounding rectangle.
startY double The starting Y coordinate of thebounding rectangle.
endX double The ending X coordinate of the bounding rectangle.
endY double The ending Y coordinate of the bounding rectangle.
startDegrees double The starting degrees of rotation.
endDegrees double The ending degrees of rotation.
return Drawables

Bezier() public method

Creates a new DrawableBezier instance.
public Bezier ( ) : Drawables
return Drawables

Bezier() public method

Creates a new DrawableBezier instance.
public Bezier ( IEnumerable coordinates ) : Drawables
coordinates IEnumerable The coordinates.
return Drawables

BorderColor() public method

Creates a new DrawableColor instance.
public BorderColor ( Color color ) : Drawables
color System.Drawing.Color The color of the border.
return Drawables

BorderColor() public method

Creates a new DrawableColor instance.
public BorderColor ( MagickColor color ) : Drawables
color MagickColor The color of the border.
return Drawables

Circle() public method

Creates a new DrawableCircle instance.
public Circle ( double originX, double originY, double perimeterX, double perimeterY ) : Drawables
originX double The origin X coordinate.
originY double The origin Y coordinate.
perimeterX double The perimeter X coordinate.
perimeterY double The perimeter Y coordinate.
return Drawables

ClipPath() public method

Creates a new DrawableClipPath instance.
public ClipPath ( string clipPath ) : Drawables
clipPath string The ID of the clip path.
return Drawables

ClipRule() public method

Creates a new DrawableClipRule instance.
public ClipRule ( FillRule fillRule ) : Drawables
fillRule FillRule The rule to use when filling drawn objects.
return Drawables

ClipUnits() public method

Creates a new DrawableClipUnits instance.
public ClipUnits ( ClipPathUnit units ) : Drawables
units ClipPathUnit The clip path units.
return Drawables

Color() public method

Creates a new DrawableColor instance.
public Color ( double x, double y, PaintMethod paintMethod ) : Drawables
x double The X coordinate.
y double The Y coordinate.
paintMethod PaintMethod The paint method to use.
return Drawables

Composite() public method

Creates a new DrawableCompositeImage instance.
public Composite ( MagickGeometry offset, CompositeOperator compose, MagickImage image ) : Drawables
offset MagickGeometry The offset from origin.
compose CompositeOperator The algorithm to use.
image MagickImage The image to draw.
return Drawables

Composite() public method

Creates a new DrawableCompositeImage instance.
public Composite ( MagickGeometry offset, MagickImage image ) : Drawables
offset MagickGeometry The offset from origin.
image MagickImage The image to draw.
return Drawables

Composite() public method

Creates a new DrawableCompositeImage instance.
public Composite ( double x, double y, CompositeOperator compose, MagickImage image ) : Drawables
x double The X coordinate.
y double The Y coordinate.
compose CompositeOperator The algorithm to use.
image MagickImage The image to draw.
return Drawables

Composite() public method

Creates a new DrawableCompositeImage instance.
public Composite ( double x, double y, MagickImage image ) : Drawables
x double The X coordinate.
y double The Y coordinate.
image MagickImage The image to draw.
return Drawables

Density() public method

Creates a new DrawableDensity instance.
public Density ( System.Drawing.PointD pointDensity ) : Drawables
pointDensity System.Drawing.PointD The vertical and horizontal resolution.
return Drawables

Density() public method

Creates a new DrawableDensity instance.
public Density ( double density ) : Drawables
density double The vertical and horizontal resolution.
return Drawables

Ellipse() public method

Creates a new DrawableEllipse instance.
public Ellipse ( double originX, double originY, double radiusX, double radiusY, double startDegrees, double endDegrees ) : Drawables
originX double The origin X coordinate.
originY double The origin Y coordinate.
radiusX double The X radius.
radiusY double The Y radius.
startDegrees double The starting degrees of rotation.
endDegrees double The ending degrees of rotation.
return Drawables

FillColor() public method

Creates a new DrawableFillColor instance.
public FillColor ( Color color ) : Drawables
color System.Drawing.Color The color to use.
return Drawables

FillColor() public method

Creates a new DrawableFillColor instance.
public FillColor ( MagickColor color ) : Drawables
color MagickColor The color to use.
return Drawables

FillOpacity() public method

Creates a new DrawableFillOpacity instance.
public FillOpacity ( Percentage opacity ) : Drawables
opacity Percentage The opacity.
return Drawables

FillPatternUrl() public method

Creates a new DrawableFillPatternUrl instance.
public FillPatternUrl ( string url ) : Drawables
url string Url specifying pattern ID (e.g. "#pattern_id").
return Drawables

FillRule() public method

Creates a new DrawableFillRule instance.
public FillRule ( FillRule fillRule ) : Drawables
fillRule FillRule The rule to use when filling drawn objects.
return Drawables

Font() public method

Creates a new DrawableFont instance.
public Font ( string family ) : Drawables
family string The font family or the full path to the font file.
return Drawables

Font() public method

Creates a new DrawableFont instance.
public Font ( string family, FontStyleType style, FontWeight weight, FontStretch stretch ) : Drawables
family string The font family or the full path to the font file.
style FontStyleType The style of the font.
weight FontWeight The weight of the font.
stretch FontStretch The font stretching type.
return Drawables

FontPointSize() public method

Creates a new DrawablePointSize instance.
public FontPointSize ( double pointSize ) : Drawables
pointSize double The point size.
return Drawables

Gravity() public method

Creates a new DrawableGravity instance.
public Gravity ( Gravity gravity ) : Drawables
gravity Gravity The gravity.
return Drawables

Line() public method

Creates a new DrawableLine instance.
public Line ( double startX, double startY, double endX, double endY ) : Drawables
startX double The starting X coordinate.
startY double The starting Y coordinate.
endX double The ending X coordinate.
endY double The ending Y coordinate.
return Drawables

Path() public method

Creates a new DrawablePath instance.
public Path ( ) : Drawables
return Drawables

Path() public method

Creates a new DrawablePath instance.
public Path ( IEnumerable paths ) : Drawables
paths IEnumerable The paths to use.
return Drawables

Point() public method

Creates a new DrawablePoint instance.
public Point ( double x, double y ) : Drawables
x double The X coordinate.
y double The Y coordinate.
return Drawables

Polygon() public method

Creates a new DrawablePolygon instance.
public Polygon ( ) : Drawables
return Drawables

Polygon() public method

Creates a new DrawablePolygon instance.
public Polygon ( IEnumerable coordinates ) : Drawables
coordinates IEnumerable The coordinates.
return Drawables

Polyline() public method

Creates a new DrawablePolyline instance.
public Polyline ( ) : Drawables
return Drawables

Polyline() public method

Creates a new DrawablePolyline instance.
public Polyline ( IEnumerable coordinates ) : Drawables
coordinates IEnumerable The coordinates.
return Drawables

PopClipPath() public method

Creates a new DrawablePopClipPath instance.
public PopClipPath ( ) : Drawables
return Drawables

PopGraphicContext() public method

Creates a new DrawablePopGraphicContext instance.
public PopGraphicContext ( ) : Drawables
return Drawables

PopPattern() public method

Creates a new DrawablePopPattern instance.
public PopPattern ( ) : Drawables
return Drawables

PushClipPath() public method

Creates a new DrawablePushClipPath instance.
public PushClipPath ( string clipPath ) : Drawables
clipPath string The ID of the clip path.
return Drawables

PushGraphicContext() public method

Creates a new DrawablePushGraphicContext instance.
public PushGraphicContext ( ) : Drawables
return Drawables

PushPattern() public method

Creates a new DrawablePushPattern instance.
public PushPattern ( string id, double x, double y, double width, double height ) : Drawables
id string The ID of the pattern.
x double The X coordinate.
y double The Y coordinate.
width double The width.
height double The height.
return Drawables

Rectangle() public method

Creates a new DrawableRectangle instance.
public Rectangle ( Rectangle rectangle ) : Drawables
rectangle System.Drawing.Rectangle The rectangle to use.
return Drawables

Rectangle() public method

Creates a new DrawableRectangle instance.
public Rectangle ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables
upperLeftX double The upper left X coordinate.
upperLeftY double The upper left Y coordinate.
lowerRightX double The lower right X coordinate.
lowerRightY double The lower right Y coordinate.
return Drawables

Rotation() public method

Creates a new DrawableRotation instance.
public Rotation ( double angle ) : Drawables
angle double The angle.
return Drawables

RoundRectangle() public method

Creates a new DrawableRoundRectangle instance.
public RoundRectangle ( double centerX, double centerY, double width, double height, double cornerWidth, double cornerHeight ) : Drawables
centerX double The center X coordinate.
centerY double The center Y coordinate.
width double The width.
height double The height.
cornerWidth double The corner width.
cornerHeight double The corner height.
return Drawables

Scaling() public method

Creates a new DrawableScaling instance.
public Scaling ( double x, double y ) : Drawables
x double Horizontal scale factor.
y double Vertical scale factor.
return Drawables

SkewX() public method

Creates a new DrawableSkewX instance.
public SkewX ( double angle ) : Drawables
angle double The angle.
return Drawables

SkewY() public method

Creates a new DrawableSkewY instance.
public SkewY ( double angle ) : Drawables
angle double The angle.
return Drawables

StrokeAntialias() public method

Creates a new DrawableStrokeAntialias instance.
public StrokeAntialias ( bool isEnabled ) : Drawables
isEnabled bool True if stroke antialiasing is enabled otherwise false.
return Drawables

StrokeColor() public method

Creates a new DrawableStrokeColor instance.
public StrokeColor ( Color color ) : Drawables
color System.Drawing.Color The color to use.
return Drawables

StrokeColor() public method

Creates a new DrawableStrokeColor instance.
public StrokeColor ( MagickColor color ) : Drawables
color MagickColor The color to use.
return Drawables

StrokeDashArray() public method

Creates a new DrawableDashArray instance.
public StrokeDashArray ( ) : Drawables
return Drawables

StrokeDashOffset() public method

Creates a new DrawableStrokeDashOffset instance.
public StrokeDashOffset ( double offset ) : Drawables
offset double The dash offset.
return Drawables

StrokeLineCap() public method

Creates a new DrawableStrokeLineCap instance.
public StrokeLineCap ( LineCap lineCap ) : Drawables
lineCap LineCap The line cap.
return Drawables

StrokeLineJoin() public method

Creates a new DrawableStrokeLineJoin instance.
public StrokeLineJoin ( LineJoin lineJoin ) : Drawables
lineJoin LineJoin The line join.
return Drawables

StrokeMiterLimit() public method

Creates a new DrawableMiterLimit instance.
public StrokeMiterLimit ( int miterlimit ) : Drawables
miterlimit int The miter limit.
return Drawables

StrokeOpacity() public method

Creates a new DrawableStrokeOpacity instance.
public StrokeOpacity ( Percentage opacity ) : Drawables
opacity Percentage The opacity.
return Drawables

StrokePatternUrl() public method

Creates a new DrawableStrokePatternUrl instance.
public StrokePatternUrl ( string url ) : Drawables
url string Url specifying pattern ID (e.g. "#pattern_id").
return Drawables

StrokeWidth() public method

Creates a new DrawableStrokeWidth instance.
public StrokeWidth ( double width ) : Drawables
width double The width.
return Drawables

Text() public method

Creates a new DrawableText instance.
public Text ( double x, double y, string value ) : Drawables
x double The X coordinate.
y double The Y coordinate.
value string The text to draw.
return Drawables

TextAlignment() public method

Creates a new DrawableTextAntialias instance.
public TextAlignment ( TextAlignment alignment ) : Drawables
alignment TextAlignment Text alignment.
return Drawables

TextAntialias() public method

Creates a new DrawableTextAntialias instance.
public TextAntialias ( bool isEnabled ) : Drawables
isEnabled bool True if text antialiasing is enabled otherwise false.
return Drawables

TextDecoration() public method

Creates a new DrawableTextDecoration instance.
public TextDecoration ( TextDecoration decoration ) : Drawables
decoration TextDecoration The text decoration.
return Drawables

TextDirection() public method

Creates a new DrawableTextDirection instance.
public TextDirection ( TextDirection direction ) : Drawables
direction TextDirection Direction to use.
return Drawables

TextEncoding() public method

Creates a new DrawableTextEncoding instance.
public TextEncoding ( Encoding encoding ) : Drawables
encoding Encoding Encoding to use.
return Drawables

TextInterlineSpacing() public method

Creates a new DrawableTextInterlineSpacing instance.
public TextInterlineSpacing ( double spacing ) : Drawables
spacing double Spacing to use.
return Drawables

TextInterwordSpacing() public method

Creates a new DrawableTextInterwordSpacing instance.
public TextInterwordSpacing ( double spacing ) : Drawables
spacing double Spacing to use.
return Drawables

TextKerning() public method

Creates a new DrawableTextKerning instance.
public TextKerning ( double kerning ) : Drawables
kerning double Kerning to use.
return Drawables

TextUnderColor() public method

Creates a new DrawableTextUnderColor instance.
public TextUnderColor ( Color color ) : Drawables
color System.Drawing.Color The color to use.
return Drawables

TextUnderColor() public method

Creates a new DrawableTextUnderColor instance.
public TextUnderColor ( MagickColor color ) : Drawables
color MagickColor The color to use.
return Drawables

Translation() public method

Creates a new DrawableTranslation instance.
public Translation ( double x, double y ) : Drawables
x double The X coordinate.
y double The Y coordinate.
return Drawables

Viewbox() public method

Creates a new DrawableViewbox instance.
public Viewbox ( Rectangle rectangle ) : Drawables
rectangle System.Drawing.Rectangle The rectangle to use.
return Drawables

Viewbox() public method

Creates a new DrawableViewbox instance.
public Viewbox ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables
upperLeftX double The upper left X coordinate.
upperLeftY double The upper left Y coordinate.
lowerRightX double The lower right X coordinate.
lowerRightY double The lower right Y coordinate.
return Drawables